Create GIF
create_gifConvert a video segment into an animated GIF with optimized colors. Specify start, duration, width, and FPS to keep the file small.
Instructions
Turn a video (or a section of it) into an animated GIF with an optimized color palette. Keep GIFs short and small — they get big fast.
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": {
"input_path": "<input_path>"
},
"name": "create_gif"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | GIF frame rate (default 12) | |
| start | No | Start time in the source (default: beginning) | |
| width | No | GIF width in pixels, height keeps aspect (default 480) | |
| duration | No | Length of the GIF (default: whole video) | |
| input_path | Yes | Path to the source video | |
| output_path | No | Where to write the .gif |