Update template
update_templateUpdate a template's name, description, or project JSON. Validate replacement JSON before saving to prevent data loss.
Instructions
Rename a template, change its description, and/or replace its project JSON. Get the current template first so fields are not accidentally lost; replacement JSON is fully validated before saving.
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": {
"templateId": "<templateId>"
},
"name": "update_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| payload | No | Full Zvid project JSON (scenes, elements, output settings). Call get_project_schema for the JSON Schema, list_supported_elements / get_element_docs for element docs, and validate_project_json BEFORE rendering. | |
| templateId | Yes | Template ID, e.g. "tpl_AbC123..." (20 chars after the prefix) | |
| description | No |