Moderate or edit a comment
update_commentChange a comment's moderation status—approve, hold, mark as spam, or move to trash—or update its text to publish, unpublish, or edit site comments.
Instructions
Change a comment's status (approve, hold for moderation, mark as spam, move to trash) or its text. Approving a comment publishes it on the site; marking it as spam or moving it to the trash takes it off the site. Use delete_comment to delete it permanently. Returns the comment's ID, post, parent and new status.
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": {
"comment_id": "<comment_id>"
},
"name": "update_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | 'approve' (published), 'hold' (back to awaiting moderation), 'spam', or 'trash' | |
| content | No | New comment text | |
| comment_id | Yes | Comment ID |