Reply to a TikTok comment
Input
text requiredReply text to publish. Shown publicly under your account.
video requiredFull TikTok video URL or a bare numeric video id (the video the comment belongs to).
commentId requiredId of the comment to reply to, as returned by the list-comments script.
rootCommentId optionalOnly needed when replying to a reply rather than to a top-level comment: the id of the top-level comment that starts the thread. TikTok threads every reply under that top comment.
Output
posted requiredTrue when this run published a new reply. False when an identical one was already there.
videoId requiredalready_present requiredTrue when the same account had already posted this exact reply under this comment, so nothing new was published.
parentCommentId requiredThe comment the reply was threaded under.
verified_on_page requiredTrue when the reply was found by re-reading the comment's replies, which is retried for a few seconds because that list is eventually consistent. False only when every reply was read without finding it. Null when the reply list was too long to read to the end, so its presence could not be established either way.
text optionalcommentId optionalId of the new reply, usable with the delete-comment script.
createTime optionalaccount_used optionalHandle the reply was actually published from, read from the signed-in session rather than assumed.
replyToReplyId optionalSet when the reply targets another reply rather than the top-level comment.
parentReplyCount optionalReplies TikTok reports under the parent comment after posting.
