Change a resize preset
update_templateUse this when the user wants to update selected name, output-format or width fields on one existing Imagelato resize preset. Returns the updated template after replacing only the fields given, and fires the template.updated webhook; it cannot move the preset to another project. Not for creating a preset.
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": {
"templateIdOrName": "<templateIdOrName>"
},
"name": "update_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New preset name, from 1 to 120 characters | |
| sizes | No | New output widths in pixels, one to ten strings from 1 to 9999; replaces the current list | |
| formats | No | New output formats, one to five of jpg, png, webp, gif or svg; replaces the current list | |
| templateIdOrName | Yes | Exact template id or name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| template | Yes |