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 to like, as it appears on the video. Comments have no visible ID in the UI, so text is the only handle a caller can read off the page — it must match exactly (including emoji), and must be unique among top-level comments on the video.
Output
liked requiredvideo_url requiredcomment_text requiredalready_liked requiredExample 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
}