wp_cpt_create
Create entries for any WordPress custom post type by specifying post type and title. Set custom fields via meta; status defaults to draft.
Instructions
Create a new item of any Custom Post Type. Required: post_type, title. Defaults to draft status. Pass meta object to set custom fields (subject to register_post_meta + show_in_rest registration on the WP side).
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>",
"title": "<title>"
},
"name": "wp_cpt_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | ||
| slug | No | ||
| title | Yes | ||
| status | No | draft | |
| content | No | ||
| excerpt | No | ||
| post_type | Yes |