Artificial Intelligence

VideoDB MCP

VideoDB MCP lets agents upload, index, search, edit and stream video and audio, generate media, and manage collections in VideoDB.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Index rtstream scenes

    Start a continuous visual (scene) index on a real-time stream: every window_seconds, frame_count frames are described with the prompt. Returns the scene index; read results with get_rtstream_scenes, search with search_rtstream.

  • Reframe video

    Re-crop a video (or a segment of it) to a new aspect ratio — vertical, square, landscape or custom dimensions — and save it as a new video in the same collection. Smart mode tracks subjects; simple mode centre-crops. Returns immediately with {status:'processing', output_url}; poll output_url (~30 s apart) with an HTTP GET or with get_job_result until it returns the new video record; {accepted: true} when callback_url is given.

  • Render timeline

    Render a multi-track editor timeline into a new stream in one call. Tracks stack by z_index; each clip places an asset at a start time for a duration with optional transitions, effects, filters, scale, opacity, fit and position. Asset kinds: video, image, audio (ids must be existing VideoDB media ids from this account), text (styled overlay text) and caption. Two behaviours to plan for: caption src 'auto' needs an existing spoken-word index on the video, otherwise the render succeeds with zero captions and no error; and a text asset's width/height are only honoured under fit 'contain', because the default fit 'crop' scales that box up to fill the frame. Returns immediately with {status:'processing', output_url}; poll output_url (~30 s apart) with an HTTP GET or with get_job_result until it returns stream_url and player_url. Use download_timeline_render for an MP4.

  • Submit feedback

    Send product feedback about this VideoDB connector to the VideoDB team. Call it when no tool can do what the user asked, when a tool returned something wrong or unexpected, when a tool's inputs or behaviour were confusing, or when the user is unhappy with VideoDB. Give the full story: what the user was trying to do and why (their use case), what they expected, and what actually happened. Fill these from the conversation; if the user's goal is unclear, ask them one short question first. Describe the task, not the user's content: leave out transcripts, personal details and file contents. One call per distinct issue; it does not fix anything, so carry on helping the user afterwards.

  • Transcode media

    Start a transcode job from a directly downloadable media URL (e.g. MP4): change resolution, quality, framerate or aspect ratio, or mute audio. For YouTube watch URLs, ingest with upload_media first, then get_video → download_stream to obtain an MP4 source. VideoDB calls callback_url when done; poll with get_transcode_status.

  • Translate transcript

    Translate a video's transcript into another language (requires a transcript — get_transcript or generate_transcript first). Video only; the translation is returned, not stored. Returns immediately with {status:'processing', output_url}; poll output_url (~30 s apart) with an HTTP GET or with get_job_result until it returns translated_transcript.

  • Understand rtstream

    Start a continuous vision-model (vlm) analysis on a real-time stream: every window_seconds, frame_count frames are analysed with the prompt and the output is stored under output_name. Returns the understanding with its outputs; pass its ID to create_rtstream_index to make the output searchable.

  • Understand video

    Run analyzers over a video to extract timestamped artifacts: speech, scene descriptions, on-screen text, objects, brands, activities, locations. Artifacts are stored but NOT searchable until create_index runs on them. v2 pipeline: understand_video (extract) → create_index (make retrievable) → semantic_search / query_index / aggregate_index / ask_video. Returns the run and each analyzer's status (pending, running, done, failed). Poll get_understanding, then read an artifact with get_analyzer_output. With callback_url the call returns immediately. ## Shape Run-level options apply to the whole run; analyzer options apply to one entry in `analyzers`. ```json { "segmentation": {"type": "shot", "threshold": 30}, "transform": {"resolution": "480p"}, "analyzers": [ {"type": "spoken_words", "name": "transcript", "config": {"language": "en"}}, {"type": "vlm", "name": "scene", "inputs": ["transcript"], "sampling": {"strategy": "uniform", "frame_count": 4}, "config": {"model": "pro", "prompt": "Describe this scene. Spoken words: {{inputs.transcript}}"}} ] } ``` ## Analyzer types | type | default name | produces | | --- | --- | --- | | spoken_words | transcript | timed speech text plus word timestamps | | vlm | scene | your own prompt or JSON schema over sampled frames | | ocr | text | text visible on screen | | object_detection | objects | labels, scores, normalized xyxy boxes | | brand_detection | brands | brand_names plus mentions | | activity_recognition | activity | the action in each scene | | location_detection | location | the setting of each scene | Set `name` to run two analyzers of the same type, or to reference one from `inputs`. ## config keys, by type | type | keys | | --- | --- | | spoken_words | language ("en", "hi", ...), speaker_labels | | vlm | model, prompt, schema, sandbox_id | | object_detection | sandbox_id (required), labels, confidence_threshold, include_bounding_boxes | | ocr, brand_detection, activity_recognition, location_detection | model | `model` is a hosted tier — mini, basic, pro, ultra — or a provider id such as "google/gemini-2.5-flash". Hosted tiers need no sandbox_id. object_detection runs on Open Compute only: create_sandbox (small tier) -> get_sandbox until status is "active" -> pass its id as config.sandbox_id. Stop it with stop_sandbox afterwards; a sandbox bills for as long as it runs. An open-weight VLM (e.g. "google/gemma-4-31B-it-FP8") needs one too. Its labels come from the COCO 80-label vocabulary ("person", "laptop", "cell phone", ...). A vlm config.schema returns JSON instead of prose: `{"activity": "string", "visible_objects": ["string"], "confidence": {"type": "number", "min": 0, "max": 1}}`. ## inputs A list of earlier analyzer names whose artifacts this analyzer may read. Reference one in the prompt as `{{inputs.transcript}}`; if you list inputs without a placeholder, VideoDB appends the context after the prompt. ## segmentation, sampling, transform segmentation sets the time ranges every visual analyzer attaches output to; it is shared by the whole run. Default `{"type":"shot","threshold":30}`. Use shot for edited video (higher threshold means fewer splits, min_scene_len sets a floor) and `{"type":"time","seconds":N}` for streams, surveillance and long unedited footage. sampling picks frames inside each scene. Pass it per analyzer or once at run level. uniform with frame_count 4-8 suits scene description, frame_count 1 gives one representative frame; interval with every N seconds catches text or motion that appears briefly. spoken_words ignores sampling. transform `{"resolution":"480p"}` lowers cost and latency; keep the source resolution when small text or fine detail matters.

  • Upload media

    Start uploading a video, audio file, or image into VideoDB from a public URL (direct file links and YouTube URLs both work). Set media_type to 'audio' or 'image' when the URL is not a video — it is uploaded as a video otherwise. Returns immediately with {status:'processing', output_url}; poll output_url (~30 s apart) with an HTTP GET or with get_job_result until it returns the created media record with its ID and player URL. Do not call upload_media again while the job is processing. With callback_url VideoDB calls your webhook instead.

PreviousPage 2 / 2