Make a GIF / looping preview
make_previewCreate a looping preview from a video section as an optimized GIF, silent MP4, or animated WebP for READMEs, Slack, client previews, or reaction clips.
Instructions
Turn a section of a video into a looping preview: an optimized GIF (custom palette, small file), a silent MP4 loop, or animated WebP. For X/Slack/Notion/GitHub READMEs, client previews, or reaction clips. Returns the first frame so you can confirm the section.
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": {
"path": "<path>"
},
"name": "make_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | ||
| loop | No | ||
| path | Yes | Absolute path to a local video file. ~ is expanded. | |
| start | No | Where the preview starts. | |
| width | No | ||
| colors | No | GIF palette size; fewer = smaller file. | |
| dry_run | No | ||
| duration | No | Length in seconds. | |
| overwrite | No | ||
| output_path | No | Defaults to <name>_preview.gif next to the video. Extension picks the format: .gif, .mp4, .webp. |