wordpress_create_comment
Create a new WordPress comment (supports replies via parent ID).
wordpress_create_comment
Create a new comment.
Parameters
6 parameters, 4 required.
| Name | Type | Required | What it is |
|---|---|---|---|
post_id | number | yes | Post ID |
author | string | yes | Author name |
author_email | string | yes | Author email |
content | string | yes | Comment content |
parent | number | no | Parent comment ID (for replies) |
status | number | no | Comment status (1=approved, 0=hold) |
Example call
The smallest valid call, with the required parameters only:
{
"name": "wordpress_create_comment",
"arguments": {
"post_id": 123,
"author": "value",
"author_email": "value",
"content": "Hello from Respira."
}
}
Response
{
"success": true,
"id": 9002,
"post_id": 101
}
What it changes
It writes to the site. It is not covered by a snapshot, so check the arguments before calling it. Calling it twice does the work twice. On a connection set to read-only it is refused with respira_scope_denied.
Availability
Works on any WordPress site, whichever page builder it uses. Available since Respira 1.0.0.
Example Prompts
- "Add a comment to post 101 from Jane saying 'Great post!'"
- "Reply to comment 9001 with 'Thanks!'"
Related Tools
Was this page helpful?