convert_to_gif
Convert a .webm video to an optimized GIF. Adjust frame rate, width, and trim the start to remove blank frames.
Instructions
Convert a .webm video to an optimized GIF using ffmpeg two-pass palette method.
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": {
"webmPath": "<webmPath>"
},
"name": "convert_to_gif"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | GIF frame rate (default 10) | |
| width | No | GIF width in pixels (default 640, height auto-scaled) | |
| webmPath | Yes | Path to the .webm file | |
| startTime | No | Skip first N seconds (useful to trim blank loading frames) |