Update an existing code template
update_code_templateEdits a code template in place. Pass only the fields you want to change. Cache-busts the served feed by bumping feed.updatedAt so the next /api/render request rasterises fresh pixels.
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_code_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| width | No | ||
| height | No | ||
| codeCss | No | ||
| codeHtml | No | ||
| isActive | No | true replaces the always-on active template of the same placement. | |
| placement | No | Move it to another image; the size must already fit the new ratio (pass width/height too). | |
| templateId | Yes | ||
| outputFormat | No | ||
| backgroundColor | No |