Update template
update_templateChange a template. Send base_revision, the revision you read; a newer revision answers template_version_conflict. What you leave out stays as it was: send body, markdown or html to replace the document, name to rename it.
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": {
"template": "<template>",
"base_revision": "<base_revision>"
},
"name": "update_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | An editor document, as get_template returns it. Images are PNG or JPEG data URLs or asset ids. get_template_format describes every key. | |
| html | No | HTML to import; {{path}} becomes a field. | |
| name | No | A new name. Omit to keep the name. | |
| markdown | No | Markdown to import; {{path}} becomes a field. | |
| template | Yes | The template's id or its name, as list_templates gives them. | |
| base_revision | Yes | The revision you read with get_template or list_templates. |