wp_get_cpt_item
Fetch a specific custom post type item by ID to access its content for updates or display in WordPress.
Instructions
Get a single custom post type item by ID
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_type": "<post_type>",
"id": "<id>"
},
"name": "wp_get_cpt_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| post_type | Yes |