media_tools_video_to_gif
Video to a good-looking GIF or animated WebP: a palette built from the clip itself, your choice of part, frame rate and width, and an optional size cap the tool hits by itself (for Discord, GitHub READMEs, Slack). Price: $0.03 USDC via x402, charged only on success. Part of Media tools: Video and audio chores for sites, apps and docs: turn a clip into a small GIF or animated WebP, compress video to web-ready MP4/WebM with a poster, pull thumbnails and a contact sheet, extract or convert audio with loudness normalization, draw waveforms, and probe a file for what will not play in browsers..
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "media_tools_video_to_gif"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | ||
| loop | No | ||
| start | No | Where to start, in seconds. | |
| video | No | Video file as base64 (MP4, MOV, WebM, MKV, AVI or GIF). | |
| width | No | Output width; height follows the aspect ratio. Never upscales. | |
| colors | No | GIF palette size. Fewer colours, smaller file. | |
| format | No | gif plays everywhere; animated webp is about half the size with full colour. | gif |
| duration | No | How many seconds to keep. To the end when omitted. | |
| maxBytes | No | Keep the file under this size: the tool lowers frame rate and width until it fits (Discord wants 10 MB, GitHub 10 MB, Slack 2 MB for inline play). | |
| videoUrl | No | Link to the video. |