Comment Toolswordpress_create_comment

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.

NameTypeRequiredWhat it is
post_idnumberyesPost ID
authorstringyesAuthor name
author_emailstringyesAuthor email
contentstringyesComment content
parentnumbernoParent comment ID (for replies)
statusnumbernoComment 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!'"