wp_create_template
Creates a new block template or part linked to the active theme. Never overwrites existing templates, including theme files. Use wp_update_template for existing slugs.
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": {
"site_id": "<site_id>",
"slug": "<slug>",
"type": "<type>",
"title": "<title>",
"content": "<content>"
},
"name": "wp_create_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | No | Registered template-part area. Parts only; defaults to uncategorized. | |
| slug | Yes | Canonical template slug (no theme prefix). | |
| type | Yes | ||
| title | Yes | Human-readable title. | |
| content | Yes | Block markup. | |
| site_id | Yes | The connected site's id returned by list_sites. Call list_sites first; do not use a URL or WordPress post ID. |