Add comment
wp_create_commentAdd a comment to a post. post_id and comment_content are required; author name, email, URL and approval status are optional.
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": {
"post_id": "<post_id>",
"comment_content": "<comment_content>"
},
"name": "wp_create_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_id | Yes | ||
| comment_author | No | ||
| comment_content | Yes | ||
| comment_approved | No | ||
| comment_author_url | No | ||
| comment_author_email | No |