create_post
Create WordPress posts, pages, or custom post types with title, content, status, taxonomies, meta fields, and featured images.
Instructions
Create a post, page, or any post type. Supports title, content (HTML or blocks), excerpt, status, slug, author, date, categories/tags (by name or ID), custom taxonomies, meta fields, featured image (URL or media ID), and page template/parent.
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": "create_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Y-m-d H:i:s (for scheduling use status=future). | |
| meta | No | Map of meta_key => value. | |
| slug | No | ||
| tags | No | ||
| title | Yes | ||
| author | No | ||
| parent | No | ||
| status | No | draft | |
| content | No | HTML or Gutenberg block markup. | |
| excerpt | No | ||
| template | No | ||
| post_type | No | post | |
| categories | No | Category names or IDs. | |
| taxonomies | No | Map of taxonomy => [terms]. | |
| featured_image | No | Image URL or existing media ID. |