Create a draft
wp_create_draftCreates a new WordPress page or post as a draft for review before publishing, accepting Gutenberg block markup or plain HTML and returning the edit link.
Instructions
Creates a new page or post. It is always saved as a draft, so a person reviews and publishes it in WordPress. content can be Gutenberg block markup or plain HTML. Returns the edit link.
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": {
"title": "<title>"
},
"name": "wp_create_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| acf | No | ACF field values by field name. The field group must have "Show in REST API" enabled. | |
| slug | No | ||
| title | Yes | ||
| parent | No | Parent page ID | |
| content | No | ||
| excerpt | No | ||
| post_type | No | Post type slug or REST base: "page", "post" or a custom post type. Default "page". | page |