Export GIF or WebP
export_gifExport an animated GIF or WebP within a size budget for PRs, issues, or READMEs, automatically lowering fps, width, and quality until the file fits.
Instructions
Export an animated GIF or WebP that fits a size budget (for PRs, issues, READMEs), stepping fps, width, and quality down until it fits.
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": "<input>"
},
"name": "export_gif"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Starting frame rate (default 12). | |
| input | Yes | Path to the source video. | |
| start | No | Start second. | |
| width | No | Starting width in px (default 960). | |
| format | No | gif (default) or webp (usually much smaller). | |
| output | No | Optional output path. Defaults under SCREENCAST_HOME/edits. | |
| duration | No | Seconds to export (default: to the end). | |
| maxBytes | No | Size budget in bytes (default 10000000, under GitHub's 10 MB image limit). | |
| overwrite | No | Allow replacing an existing file at the output path (default false). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outputPath | Yes | Path of the file written. |