wp_post_create
Create new WordPress posts or pages directly via WP-CLI commands. Specify title, content, post type, and status for content management.
Instructions
Create a new post or page
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": "wp_post_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Post title | |
| content | Yes | Post content (HTML) | |
| post_type | No | Post type (default: post) | |
| status | No | Post status: draft, publish, pending, private |