Like TikTok Comment
TL;DR
About
On your own videos, your heart puts a "Liked by creator" label under the viewer's comment, a public sign you read it. A bakery that posts a croissant video at 8am can have an agent sort the comments at lunch: pull them with get_comments, skip the ones already marked likedByCreator, heart the twelve friendly ones with this script (one run per comment) and answer the two questions about opening hours with reply_to_comment. Each run opens the comment panel in your signed-in Chrome and hearts the single top-level row that matches. If liked comes back false, the heart did not stay on after the click, so check the video before trying again. The weak spot is matching. With no comment id in the panel, the script looks for a comment containing your text, ignoring case, so a bare "so good" also hits "omg so good". Paste the whole comment. Only the comments the panel loads first are searched, too.
Input
videoUrl requiredThe video's canonical URL, e.g. https://www.tiktok.com/@someuser/video/1234567890123456789.
commentText requiredThe exact, full text of the top-level comment, as it appears on the video. Comments have no visible ID, so the text is the handle: it must match exactly (including emoji) and be unique among the top-level comments shown.
like optionaltrue (default) likes the comment; false removes your like.
Default: trueOutput
liked requiredWhether the comment carries your like after the run, read back from the page.
video_url requiredcomment_text requiredalready_liked requiredWhether the comment already had your like before the run.
Example output
Shape only: placeholder values generated from the output schema, not a real run.
{
"liked": true,
"video_url": "https://example.com/item/123",
"comment_text": "…",
"already_liked": true
}