Create a comment or reply
create_commentCreates a WordPress comment as the configured user, optionally as a reply to a parent comment; holds it for moderation unless status 'approve' is passed.
Instructions
Create a comment, usually a reply to another comment (parent), as the configured WordPress user. WordPress comments have no drafts, so by default the comment is held for moderation and is not shown on the site until approved (update_comment with status 'approve', or in the WordPress admin). Pass status 'approve' to publish it at once. The status is always sent, so the configured user needs the moderate_comments capability (Editor or Administrator role); without it WordPress refuses the comment. WordPress saves a new comment as approved and then sets the requested status within the same request, so plugins that run when a comment is saved may briefly see a held comment as approved. Returns the new comment's ID, post, parent and 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": {
"content": "<content>"
},
"name": "create_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent | No | ID of the comment to reply to | |
| status | No | 'hold' (held for moderation, the default) or 'approve' (published at once) | hold |
| content | Yes | Comment text | |
| post_id | No | Post or page ID to comment on. Optional when parent is given (the post of the parent comment is used) |