Edit Template Draft
update_template_draftEdit a non-active draft template by updating its source or display name, and optionally validate to save and test-compile in one call.
Instructions
Edit a draft template; changing the source resets it to 'draft'. Pass validate=True to save + test-compile in one call (returned status/last_error show the result); otherwise re-validate separately. The active default template cannot be edited through these tools (the backend rejects 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_id": "<template_id>"
},
"name": "update_template_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | ||
| validate | No | ||
| template_id | Yes | ||
| display_name | No |