wp_create_comment
Creates a comment on a WordPress post or a block editor note, letting you set author, content, reply parent, and status to add discussions or editorial notes to a site.
Instructions
Create a comment on a post (or a block note with type=note)
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": {
"site": "<site>",
"post": "<post>",
"content": "<content>"
},
"name": "wp_create_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date in the site timezone (ISO8601) | |
| meta | No | Registered comment meta fields (show_in_rest) as key/value | |
| post | Yes | Post ID | |
| site | Yes | Site id (see list_sites) | |
| type | No | comment (default) or note (block editor note, WP 6.9+) | |
| author | No | User ID of the author (instead of author_name/author_email) | |
| parent | No | Parent comment ID (for replies; 0 = top level) | |
| status | No | Initial status (requires moderate_comments) | |
| content | Yes | Comment content | |
| date_gmt | No | Date in GMT (ISO8601) | |
| author_ip | No | Author IP address (requires moderate_comments) | |
| author_url | No | Author website URL | |
| author_name | No | Author display name | |
| author_email | No | Author email | |
| author_user_agent | No | Author user agent |