Bulk moderate comments
moderate_commentsApprove, hold, spam, trash, unspam, or untrash multiple comments in one call. Reports per-comment outcomes so you can clear a WordPress moderation queue.
Instructions
Approve, hold, spam, trash — or unspam/untrash — several comments in one call; the practical way to clear a moderation queue. Reports per-comment outcomes rather than failing the whole batch on one error.
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": {
"ids": "<ids>",
"action": "<action>"
},
"name": "moderate_comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | Comment IDs to act on. | |
| action | Yes | What to do with each. unspam/untrash restore the comment's previous status. | |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. |