video_to_gif
Convert video files to animated GIFs with ffmpeg, specifying frame rate, width, and quality preset for the output.
Instructions
Convert a video file to an animated GIF using ffmpeg
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": {
"inputPath": "<inputPath>",
"outputPath": "<outputPath>"
},
"name": "video_to_gif"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Frames per second for the GIF (default: 10) | |
| width | No | Width of the GIF in pixels (default: 800, -1 for auto) | |
| quality | No | Quality preset: 'low', 'medium', 'high' (default: 'medium') | medium |
| inputPath | Yes | Path to the input video file | |
| outputPath | Yes | Path to save the output GIF |