Create a resize preset
add_templateUse this when the user wants to create one Imagelato preset that specifies widths and formats for future image processing. Returns the new template; formats default to jpg and webp and widths to 512, 256, 128 and 64 pixels. Each call creates another preset and emits template.created to configured webhooks; it does not process an image. Not for editing 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": {
"name": "<name>",
"projectId": "<projectId>"
},
"name": "add_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Template name, from 1 to 120 characters | |
| sizes | No | Output widths in pixels, one to ten strings from 1 to 9999; defaults to 512, 256, 128 and 64 | |
| formats | No | Output formats, one to five of jpg, png, webp, gif or svg; defaults to jpg and webp | |
| projectId | Yes | Exact project id |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| template | Yes |