generate_gif
Convert a video segment into an animated GIF. Specify input and output paths, with optional start time, duration, width, and fps to control the result.
Instructions
Convert a segment of a video into an animated GIF.
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>",
"output_path": "<output_path>"
},
"name": "generate_gif"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | ||
| width | No | ||
| duration | No | ||
| input_path | Yes | Source video path. Relative paths resolve against MEDIA_DIR (defaults to the server's working directory); absolute paths are used as-is. | |
| start_time | No | ||
| output_path | Yes | Destination .gif path. Relative paths resolve against MEDIA_DIR (defaults to the server's working directory); absolute paths are used as-is. |