anim_resize
Resize GIF or video animations to exact dimensions or scale proportionally by setting one dimension, with optional frame-rate control for the output.
Instructions
Resize an animation (GIF/video) — proportional or exact dimensions.
Args: source: input animation path. output: output path (.gif or .mp4); defaults beside the input with a "_resized" suffix. width: target width in px (height follows the aspect ratio when only width is given). height: target height in px (width follows the aspect ratio when only height is given). fps: output frame rate (default: detected from the source, else 10).
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": {
"source": "<source>"
},
"name": "anim_resize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | ||
| width | No | ||
| height | No | ||
| output | No | ||
| source | Yes |