media-context (mctx)
v0.1.2Keep images, video & audio out of coding agent contexts — local FFmpeg + zero extra API cost.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
media_probe
Zero-token local media probe via ffprobe/ffmpeg. Returns compact JSON with duration, resolution, fps, codecs, and optional audio volume/silence or video black-frame checks.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute path to image, audio, or video file. |
check_audio | boolean | Run volumedetect & silencedetect. |
check_black | boolean | Run blackdetect on video. |
media_sheet
Compress a video or multiple image frames into a single low-resolution timestamped contact sheet JPEG to save 85%+ visual tokens.
| Parameter | Type | Description |
|---|---|---|
inputs * | array | 1 video file path, or a list of image file paths / directories. |
grid | string | Grid layout like '3x3' or '4x3'. Default '3x3'. |
timestamps | boolean | Overlay timestamps on video tiles. Default true. |
width | integer | Total sheet width in pixels. Default 1280. |
media_shrink
Downscale and compress a single large image into a lightweight JPEG copy.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to image file. |
max_side | integer | Max width/height in pixels. Default 1024. |
quality | integer | JPEG quality 1-100. Default 78. |
media_inspect
Inspect images/videos/audio in an isolated, stateless subscription CLI worker (zero extra API cost, zero media tokens leaked into the main conversation). Automatically creates contact sheets for videos/multi-images and caches results in SQLite.
| Parameter | Type | Description |
|---|---|---|
inputs * | array | List of media file paths or directories to inspect. |
question * | string | Concise inspection question or checklist. |
backend | string | Optional backend CLI: auto, agy, claude, codex, opencode. |
grid | string | Contact sheet grid for videos/multi-images. Default '3x3'. |
model | string | Optional model override for the worker CLI. |
no_cache | boolean | Bypass SQLite cache. |
media_transcribe
Zero-cost local offline audio/video transcription using installed whisper engine.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path to audio or video file. |
language | string | Optional language code (e.g. 'zh', 'en'). |
media_stats
Return cumulative bytes and estimated tokens saved by media-context.