Comment Toolswordpress_delete_comment

wordpress_delete_comment

Delete a WordPress comment.

wordpress_delete_comment

Delete a comment.

Parameters

2 parameters, 1 required.

NameTypeRequiredWhat it is
idnumberyesComment ID
approval_tokenstringnoOne-time token from a prior respira_approval_required response. Omit on the first call; the tool will reject with a token if approval is required, then re-call with this parameter set to that token to confirm and execute.

Example call

The smallest valid call, with the required parameters only:

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

Response

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

What it changes

It removes or overwrites something on the site, so treat it as the careful kind of call. On a page or post the edit lands on a copy first. The live page changes only when a person approves the copy in wp-admin. 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

  • "Delete comment 9001"
  • "Remove the spam comment with ID 9001"