Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Understand rtstream
VIDEODB_MCP_UNDERSTAND_RTSTREAMStart 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
VIDEODB_MCP_UNDERSTAND_VIDEORun 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.
Update collection
VIDEODB_MCP_UPDATE_COLLECTIONRename a collection, change its description, or switch it between public and private. Only the fields given are changed; at least one is required.
Update video
VIDEODB_MCP_UPDATE_VIDEOUpdate a video's display name.
Upload media
VIDEODB_MCP_UPLOAD_MEDIAStart 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.