get_post
Retrieve a single WordPress post or page by ID with full content in raw, rendered, or plain text format, ready to pass back unchanged for updates.
Instructions
Retrieve a single WordPress post or page by ID, including its full content. By default the content is the editable source (with Gutenberg block markup), which can be passed back to update_post unchanged.
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>"
},
"name": "get_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | How to return the content. 'raw': editable source (requires edit permission; falls back to rendered HTML otherwise). 'rendered': HTML as displayed on the site. 'text': plain text with tags removed. Defaults to 'raw'. | raw |
| post_id | Yes | Post or page ID to retrieve | |
| post_type | No | Content type to retrieve. Defaults to 'post'. | post |