Read a comment
wp_get_commentRetrieve a single WordPress comment by its ID to review author, content, status, date, and parent details for moderation or troubleshooting.
Instructions
Get one comment by id. Returns {comment_id, post_id, author, content, status, date, parent}: author is the commenter's name as stored (no email), status is "approved", "unapproved", "spam", "trash", or false for a comment hidden because its post is in the trash (stored as post-trashed), date is RFC 3339 in site time, parent is 0 for a top-level comment. An unknown comment_id returns a not-found error. Needs moderate_comments. Read-only; wp_list_comments lists several comments with filters.
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": {
"comment_id": "<comment_id>"
},
"name": "wp_get_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment_id | Yes | Comment id, as wp_list_comments returns it. |