{"at":"2026-11-23T03:23:16.413Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T03:23:16.795Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T03:23:16.896Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T03:23:17.292Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"media-context-mcp","version":"0.1.4"}}}}
{"at":"2026-11-23T03:23:17.292Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T03:23:17.292Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T03:23:17.295Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Report which external binaries (ffmpeg, ffprobe, yt-dlp, whisper, tesseract) are available. Call this first if analyze_media fails with a missing-binary error.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"check_media_deps","title":"Check media tool dependencies"},{"description":"Turn a local media file or URL (video, audio, or image) into compact context a model can read — fully local, no paid APIs. Video: montage frames (mode 'sheet', cheapest default), individual stills ('frames'), or scene changes ('scenes'); add transcript and/or ocr. Audio: speech transcript. Image: the picture plus optional OCR. For app/screen recordings use detail:'high' + ocr:true. To catch a transient UI glitch (a flicker/jump lasting <1s), use mode:'filmstrip' with a narrow startSec/endSec window, a high fps (10–15), and a crop around the affected control — it stacks dense frames so you can spot a frame whose value disagrees with the visual. Use the cheap default for everything else. Pass context to frame the analysis.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"context":{"description":"Optional note about the video to frame the analysis, e.g. 'signup flow, focus on the validation error'.","maxLength":4000,"type":"string"},"crop":{"additionalProperties":false,"description":"Rectangle to crop before sampling — zoom into a UI region for sharper frames/OCR. Pixels, or fractions 0–1 of the frame (e.g. {x:0,y:0.7,width:1,height:0.3} = bottom 30%).","properties":{"height":{"exclusiveMinimum":0,"type":"number"},"width":{"exclusiveMinimum":0,"type":"number"},"x":{"minimum":0,"type":"number"},"y":{"minimum":0,"type":"number"}},"required":["x","y","width","height"],"type":"object"},"detail":{"description":"high = readable stills for screen recordings (frames + large scale + png); low = cheap montage. Overrides only the fields you leave unset.","enum":["low","high"],"type":"string"},"detectJumps":{"default":false,"description":"Track the on-screen number (e.g. a slider %) across frames and report non-monotonic 'jump-back' glitches with timestamps. Pair with a crop around the value and a narrow window for best results.","type":"boolean"},"endSec":{"description":"Window end in seconds.","minimum":0,"type":"number"},"format":{"default":"webp","description":"Image encoding. webp = smallest/fewest tokens (default); png = lossless for crisp text.","enum":["webp","jpeg","png"],"type":"string"},"fps":{"description":"Explicit sampling rate (frames/sec); overrides the auto rate for sheet/frames/filmstrip. Use a high value (e.g. 10–15) with filmstrip to catch sub-second glitches.","maximum":60,"minimum":0.01,"type":"number"},"grid":{"default":5,"description":"Tiles per row/column for sheet/scenes modes (grid x grid).","maximum":8,"minimum":2,"type":"integer"},"maxDurationSec":{"default":3600,"description":"Reject URL downloads longer than this many seconds.","maximum":36000,"minimum":1,"type":"number"},"maxFileSizeMb":{"default":500,"description":"Abort a URL download once it exceeds this size in MB.","maximum":8192,"minimum":1,"type":"number"},"maxFrames":{"default":30,"description":"Upper bound on sampled frames across the whole window.","maximum":200,"minimum":1,"type":"integer"},"mode":{"default":"sheet","description":"sheet = montage grids (cheapest, default); frames = individual stills; scenes = only scene-change montages; filmstrip = dense near-native-fps vertical strip for catching transient UI glitches (pair with a narrow startSec/endSec window, fps, and crop).","enum":["sheet","frames","scenes","filmstrip"],"type":"string"},"ocr":{"default":false,"description":"Extract on-screen text via OCR — ideal for app/screen recordings. Implies detail:high unless set.","type":"boolean"},"ocrLang":{"default":"eng","description":"Tesseract language code(s) for OCR, e.g. 'eng' or 'eng+deu'.","type":"string"},"ocrMaxFrames":{"default":12,"description":"Frames to OCR (sampled at full resolution, independent of the display images).","maximum":60,"minimum":1,"type":"integer"},"ocrPsm":{"default":3,"description":"Tesseract page-segmentation mode. 3 = auto (default), 6 = uniform block, 11 = sparse/scattered UI labels.","maximum":13,"minimum":0,"type":"integer"},"scale":{"default":320,"description":"Width in px of each frame before tiling. Lower = fewer tokens.","maximum":1280,"minimum":120,"type":"integer"},"sceneThreshold":{"default":0.4,"description":"Scene-change sensitivity for 'scenes' mode (higher = fewer cuts).","maximum":0.9,"minimum":0.05,"type":"number"},"source":{"description":"Local media file path (video, audio, or image) OR an http(s) URL.","minLength":1,"type":"string"},"startSec":{"description":"Window start in seconds.","minimum":0,"type":"number"},"stripRows":{"default":18,"description":"Tiles stacked per image in 'filmstrip' mode.","maximum":40,"minimum":2,"type":"integer"},"transcript":{"default":false,"description":"Also run local Whisper to produce a speech transcript.","type":"boolean"},"whisperModel":{"default":"small","description":"Whisper model name (tiny, base, small, medium, large).","type":"string"}},"required":["source"],"type":"object"},"name":"analyze_media","title":"Analyze a video, audio, or image file or URL"}]}}}
