wp_cpt_get
Fetch a single custom post type item by its ID, using the post type's REST base to ensure correct retrieval.
Instructions
Fetch a single item of a Custom Post Type by id. post_type must match rest_base from wp_get_post_types.
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_cpt_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| context | No | edit | |
| post_type | Yes |