Create a WordPress page
create_pageCreate a new WordPress page via the REST API, specifying title and HTML content. Use to programmatically add pages to a site (requires edit_pages capability).
Instructions
Create a new page via POST /wp-json/wp/v2/pages. content is an HTML string. Requires edit_pages capability on the authenticated user.
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>",
"content": "<content>"
},
"name": "create_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | Optional meta fields object to attach to the page. | |
| title | Yes | The page title. | |
| status | No | Publication status. Defaults to "draft" if omitted. | |
| content | Yes | The page body as an HTML string. |