Comment Toolswordpress_update_comment

wordpress_update_comment

Update a WordPress comment's content or approval status.

wordpress_update_comment

Update a comment.

Parameters

3 parameters, 1 required.

NameTypeRequiredWhat it is
idnumberyesComment ID
contentstringnoComment content
statusnumbernoComment status

Example call

The smallest valid call, with the required parameters only:

{
  "name": "wordpress_update_comment",
  "arguments": {
    "id": 123
  }
}

Response

{
  "success": true,
  "updated": true,
  "id": 9001
}

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 with the same arguments leaves the site in the same state as calling it once. 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

  • "Approve comment 9001"
  • "Update comment 9001 content to fix a typo"