yt_post_comment
Publishes a public top-level comment on a YouTube video or Short via YouTube Data API v3 and returns the comment ID, video ID, and published text.
Instructions
Post a public top-level comment thread on a YouTube video or Short via YouTube Data API v3 (commentThreads.insert, costs ~50 daily quota units). Requires OAuth2 with youtube.force-ssl scope. Non-idempotent: each call publishes a new visible comment immediately under the authenticated channel identity and returns {commentId, videoId, text}. Fails if comments are disabled on the target video or the video is private. Built-in limits (not adjustable): at most 20 comments+replies per rolling hour and 100 per rolling 24 hours, and the same text at most 2 times per 24 hours.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"video_id": "<video_id>",
"text": "<text>"
},
"name": "yt_post_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Plain-text comment body (1–10,000 characters) to publish publicly on the video. | |
| dry_run | No | If true, post nothing and return the comment text that would be published. | |
| video_id | Yes | 11-character YouTube video ID where the top-level comment will be posted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | ||
| videoId | Yes | ||
| commentId | No |