content-management
Create, edit, and manage WordPress posts and pages with draft, edit, pull, and sync actions. Perform bulk operations and update statuses to maintain content workflows.
Instructions
[CONTRIBUTOR] [Content Management] Create, edit, and manage posts and pages. TROUBLESHOOTING: If sync action fails, check error message for specific recovery steps. Common fixes: delete problematic blocks and recreate them, use simple parameters instead of complex attributes.
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": {
"action": "<action>"
},
"name": "content-management"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Tag names | |
| type | No | Content type | |
| title | No | Title | |
| action | Yes | Content management action to perform | |
| parent | No | Parent page ID | |
| postId | No | Post/page ID (for edit, pull, sync, trash) | |
| status | No | Publish status | |
| content | No | Content in clean HTML or Markdown. When editing blocks, use proper HTML tags like <h2>Title</h2>, <p>Text</p>, <ul><li>Item</li></ul>. AI-generated HTML works great with automatic validation! | |
| excerpt | No | Brief summary | |
| recurse | No | Recursively process subdirectories (only valid for directories with type="page") | |
| filePath | No | Path(s) to markdown files or directories (for markdown-to-wp action) | |
| newStatus | No | New status for change_status operation | |
| operation | No | Bulk operation type (for bulk action) | |
| categories | No | Category names | |
| contentIds | No | Array of content IDs to operate on (for bulk action) | |
| closeSession | No | Close session after sync | |
| documentHandle | No | Document handle for sync | |
| featuredImageUrl | No | Featured image URL |