set-comment-moderation-status
Control YouTube comment visibility by setting status to published, held for review, or rejected. Requires confirmation; optionally bans the author.
Instructions
Set the moderation status of one or more comments on your videos — publish, hold for review, or reject (hide from public view; the current replacement for the removed markAsSpam method). Costs 50 quota units. Requires confirm: true.
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": {
"commentIds": "<commentIds>",
"moderationStatus": "<moderationStatus>"
},
"name": "set-comment-moderation-status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be true to actually apply the moderation status | |
| banAuthor | No | Also ban the author from commenting on your channel | |
| commentIds | Yes | Comment IDs to moderate | |
| moderationStatus | Yes | Status to apply |