Inline Media Preview
preview_mediaRender local video, waveform audio, and image previews inline in chat to inspect media without loading raw bytes into model context.
Instructions
Render an inline video player (9:16 or 16:9), waveform audio player, or image filmstrip directly inside chat for local media files.
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": {
"paths": "<paths>"
},
"name": "preview_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loop | No | Loop video/audio playback (useful for Shorts loop checks). Defaults to false. | |
| mode | No | "default" shows full inline previews (video-sized single image, 82px gallery strip for multiple images, compact video/audio). "peek" shows tiny right-aligned 30px micro-thumbnails when silently inspecting frames while working. | |
| paths | Yes | Absolute file paths to local video (.mp4, .webm, .mov), audio (.wav, .mp3, .ogg, .m4a, .flac), or image (.png, .jpg, .webp, .gif, .svg) files. | |
| autoplay | No | Autoplay on load (muted if required by browser policy). Defaults to false. |