create_post_with_featured_image
Create a WordPress post with a featured image by providing a title, content, and media ID; optionally set status and slug, with draft as the default.
Instructions
Create a new WordPress post with featured image
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>",
"featured_media_id": "<featured_media_id>"
},
"name": "create_post_with_featured_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | URL slug (optional). If omitted, WordPress generates one from the title (a Japanese title gives a Japanese slug). Use it to set an ASCII slug, e.g. 'my-first-post'. WordPress may change it (for example, appending '-2' if the slug is already used); the result shows the actual slug | |
| title | Yes | The post title | |
| status | No | Post status. Defaults to 'draft' so nothing is published unintentionally. 'future' is not available because this tool has no date parameter. | draft |
| content | Yes | The post content | |
| featured_media_id | Yes | Media ID for featured image |