wp_comments_update
Update WordPress comments by changing status to approved, pending, spam, or trash, and edit comment content and author details.
Instructions
Update a comment. Moderation actions: status=approved (publish), hold (pending), spam, trash. Can also edit content and author fields.
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": {
"id": "<id>"
},
"name": "wp_comments_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| status | No | ||
| content | No | ||
| author_url | No | ||
| author_name | No | ||
| author_email | No |