---
canonical_url: "https://docs.composio.dev/toolkits/videodb_mcp"
markdown_url: "https://docs.composio.dev/toolkits/videodb_mcp.md"
product: "platform"
version: null
last_updated: null
---

# VideoDB MCP

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

- **Category:** model context protocol
- **Auth:** DCR_OAUTH
- **Composio-managed OAuth available?** No
- **Tools:** 105
- **Triggers:** 0
- **Slug:** `VIDEODB_MCP`
- **Version:** 00000000_00

## Tools

### Add subtitles

**Slug:** `VIDEODB_MCP_ADD_SUBTITLES`

Burn subtitles into a video from its transcript (requires an existing spoken-word index). Styling follows ASS subtitle conventions; unset fields keep VideoDB defaults. Returns a new stream + player URL with subtitles rendered.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `bold` | string | No | Bold text. |
| `angle` | string | No | Rotation angle in degrees, default 0. |
| `italic` | string | No | Italic text. |
| `shadow` | string | No | Shadow depth in pixels, default 0. |
| `outline` | string | No | Outline thickness in pixels, default 1. |
| `scale_x` | string | No | Horizontal scale factor, default 1.0. |
| `scale_y` | string | No | Vertical scale factor, default 1.0. |
| `spacing` | string | No | Extra spacing between letters in pixels, default 0. |
| `margin_l` | string | No | Left margin in pixels, default 10. |
| `margin_r` | string | No | Right margin in pixels, default 10. |
| `margin_v` | string | No | Vertical margin in pixels, default 10. |
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `alignment` | string | No | Position of the subtitles on the frame, default bottom_center. |
| `font_name` | string | No | Font family, default Arial. |
| `font_size` | string | No | Font size, default 18. |
| `underline` | string | No | Underlined text. |
| `strike_out` | string | No | Strike-through text. |
| `back_colour` | string | No | Background/shadow colour. ASS colour string &HAABBGGRR (alpha, blue, green, red hex), e.g. &H00FFFFFF is opaque white. Default black. |
| `border_style` | string | No | Border style, default outline. |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |
| `outline_colour` | string | No | Outline colour. ASS colour string &HAABBGGRR (alpha, blue, green, red hex), e.g. &H00FFFFFF is opaque white. Default black. |
| `primary_colour` | string | No | Text colour. ASS colour string &HAABBGGRR (alpha, blue, green, red hex), e.g. &H00FFFFFF is opaque white. Default white. |
| `secondary_colour` | string | No | Secondary (karaoke) colour. ASS colour string &HAABBGGRR (alpha, blue, green, red hex), e.g. &H00FFFFFF is opaque white. |

### Aggregate index

**Slug:** `VIDEODB_MCP_AGGREGATE_INDEX`

Counts, groups and facets over one index built by create_index (use_for includes 'aggregate') in a video or across a collection. Provide exactly one of index_id or index_name. Returns aggregate rows, not moments.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `sort` | string | No | Sort order, e.g. [["start", "asc"]]. |
| `limit` | string | No | Max groups (default 100). |
| `filter` | string | No | Structured filter over index fields, e.g. [{"field": "label", "op": "==", "value": "phone"}] or {"activity": "walking"}. |
| `metric` | string | No | count (default), or sum(field), avg(field), min(field), max(field). |
| `group_by` | string | No | Aggregatable field to group by; dotted paths allowed, e.g. frames.detections.label. |
| `index_id` | string | No | Index ID from list_indexes. Provide exactly one of index_id or index_name. |
| `video_id` | string | No | VideoDB video ID (starts with m-). Omit to run against the whole collection. |
| `index_name` | string | No | Index name from list_indexes. Provide exactly one of index_name or index_id. |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### Ask collection

**Slug:** `VIDEODB_MCP_ASK_COLLECTION`

Answer a natural-language question from every indexed video in a collection (requires indexes built by create_index). Returns the answer and, optionally, the source moments.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `mode` | string | No | Retrieval mode for sources (default 'default'). |
| `top_k` | string | No | Candidate moments retrieved as evidence (default 15). |
| `question` | string | Yes | Question to answer from the indexed content. |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |
| `include_sources` | string | No | Return the supporting moments alongside the answer (default false). |

### Ask video

**Slug:** `VIDEODB_MCP_ASK_VIDEO`

Answer a natural-language question from one video's indexed content (requires an index built by create_index). Returns the answer and, optionally, the source moments.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `mode` | string | No | Retrieval mode for sources (default 'default'). |
| `top_k` | string | No | Candidate moments retrieved as evidence (default 15). |
| `question` | string | Yes | Question to answer from the indexed content. |
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |
| `include_sources` | string | No | Return the supporting moments alongside the answer (default false). |

### Compile clips

**Slug:** `VIDEODB_MCP_COMPILE_CLIPS`

Stitch moments from one or more videos into a single new stream — e.g. turn search results or create_highlight_clip shots into a highlight reel. 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.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `clips` | array | Yes | Clips in playback order. |

### Connect rtstream

**Slug:** `VIDEODB_MCP_CONNECT_RTSTREAM`

Register a live RTSP/RTMP/HLS stream with VideoDB and start ingesting it. Returns the rtstream ID used by every other rtstream tool. Set store=true if you will later export the recording (export_rtstream_recording).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | Yes | Stream URL, e.g. rtsp://host:8554/cam1. |
| `name` | string | Yes | Display name for the stream. |
| `store` | string | No | Keep the recording so it can be exported later. Default false. |
| `media_types` | string | No | Which tracks to capture. |
| `sample_rate` | string | No | Frame sampling rate; server default 30. |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |
| `enable_transcript` | string | No | Start real-time transcription on connect. |

### Create collection

**Slug:** `VIDEODB_MCP_CREATE_COLLECTION`

Create a new VideoDB collection to organize videos. Returns the new collection with its ID.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Collection name. |
| `is_public` | string | No | Make the collection publicly viewable. |
| `description` | string | No | Optional description. |

### Create event

**Slug:** `VIDEODB_MCP_CREATE_EVENT`

Define a reusable event (a natural-language condition such as 'a person enters the restricted area') that alerts can watch for on any stream index. Returns the event ID.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `label` | string | Yes | Short machine-friendly label, e.g. intrusion. |
| `event_prompt` | string | Yes | Condition to detect, in natural language. |

### Create highlight clip

**Slug:** `VIDEODB_MCP_CREATE_HIGHLIGHT_CLIP`

Create a highlight clip of a video from a natural-language prompt: selects the moments that match the prompt and returns them as the clip's timestamped shots. Works on spoken content (requires an existing spoken-word index), visual content (requires an existing legacy scene index), or both. 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 clip's shots with timestamps; pass those shots to compile_clips to render the clip as one playable stream.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `prompt` | string | Yes | What the highlight should contain, e.g. 'every product demo moment'. |
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `model_name` | string | No | Selection model quality tier. |
| `content_type` | string | No | Which index to select moments from. |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### Create index

**Slug:** `VIDEODB_MCP_CREATE_INDEX`

Build a retrieval-ready index from one analyzer's artifact of an understanding run; that analyzer must be done (get_understanding). v2 pipeline: understand_video (extract) → create_index (make retrievable) → semantic_search / query_index / aggregate_index / ask_video. With callback_url the call returns immediately.

## use_for — what the index may be used for

| value | enables |
| --- | --- |
| semantic | semantic_search and search (embeddings) |
| query | query_index — exact filters and ranges |
| aggregate | aggregate_index — counts, group_by, facets |

Omit it for all three. Drop semantic (e.g. ["query"]) to skip embeddings: cheaper, and ready instantly. get_index reports the index's EFFECTIVE capability, so it can be narrower than what you asked for — aggregate only appears once a field is groupable, and an index with no records reports [].

## fields — which artifact fields join which group

fields maps a group to the field names in it, not the reverse: `{"semantic":["description"],"filter":["label"],"aggregate":["label"]}`. Groups are semantic (embedded), fts, filter, aggregate, sort, hydrate and return. A field may join several. Names may be dotted paths into nested data — `frames.detections.label` reaches inside every detection. A name that resolves nowhere fails with a 400 listing the fields that do exist.

fields is optional per group: a group you declare is used verbatim, a group you omit is derived from the data.

| artifact field | derived groups |
| --- | --- |
| text, scene_description | semantic |
| language, brand_names | filter, aggregate |
| activity, location | semantic, filter, aggregate |
| frames.detections.label | filter, aggregate |
| frames.detections.score | filter, sort |

Anything else is classified by shape: prose to semantic, short strings and scalar lists to filter and aggregate, numbers also to sort, nested objects stored only. An explicitly empty group opts out and is not refilled — `{"filter":[]}` means no filter fields.

## After it returns

The build is rows-first: records are stored before this returns, so query_index and aggregate_index already work while get_index reports "building". Only semantic_search waits for "ready".

Reuse one index name across videos to form a logical group that collection-scoped search can target. Indexes sharing a name must share a field structure; a mismatch is rejected with a 400 showing both.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | Index name; used by semantic_search index_names and get_index. |
| `fields` | string | No | One object mapping each group to the field names in it, e.g. {"semantic":["description"],"filter":["label"],"aggregate":["label"]} — not field to groups. Other groups: fts, sort, hydrate, return. Names may be dotted paths such as "frames.detections.label". An empty array opts a group out; an omitted group is derived from the data. |
| `use_for` | string | No | Capabilities to build: semantic (embeddings), query (filters), aggregate (group/count). Omit for all three; drop semantic to skip embeddings. |
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `analyzer_id` | string | No | Analyzer ID (an_...). Give this or analyzer_name. |
| `callback_url` | string | No | Optional webhook URL VideoDB calls when the job finishes (makes the call return immediately). |
| `analyzer_name` | string | No | Analyzer name inside the run, e.g. 'transcript', 'scene', 'objects'. Give this or analyzer_id. |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |
| `understanding_id` | string | Yes | Understanding run ID (from understand_video / list_understandings). |

### Create rtstream alert

**Slug:** `VIDEODB_MCP_CREATE_RTSTREAM_ALERT`

Attach an event (from create_event) to a stream index so VideoDB POSTs to callback_url each time the event is detected in a new window. Requires a running scene index or index; index_id is verified before the alert is created because alerts cannot be deleted. Returns the alert ID.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `event_id` | string | Yes | Event ID from create_event. |
| `index_id` | string | Yes | Scene index ID or index ID to watch. |
| `index_kind` | string | No | scene_index = created by index_rtstream_scenes/index_rtstream_audio; index = created by create_rtstream_index. |
| `rtstream_id` | string | Yes | VideoDB real-time stream ID (starts with rts-). |
| `callback_url` | string | Yes | Webhook that receives each alert. |

### Create rtstream index

**Slug:** `VIDEODB_MCP_CREATE_RTSTREAM_INDEX`

Materialise an understanding output into a continuously updated searchable index (requires understand_rtstream with store=true). Returns the index; search it with search_rtstream and attach alerts with create_rtstream_alert (index_kind=index).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | Index name. |
| `output` | string | No | Which analyzer output of the understanding to index. |
| `use_for` | string | No | Index capabilities; server default ["semantic"]. |
| `rtstream_id` | string | Yes | VideoDB real-time stream ID (starts with rts-). |
| `understanding_id` | string | Yes | Understanding ID from understand_rtstream. |

### Create sandbox

**Slug:** `VIDEODB_MCP_CREATE_SANDBOX`

Start a GPU sandbox: VideoDB's managed runtime for open-weight models. Hosted models need none of this — a sandbox is required only when a workflow names a model from the catalog below, and is then passed as `config.sandbox_id` to understand_video.

Returns as soon as the sandbox is registered, with status "provisioning". Poll get_sandbox until status is "active" before submitting any job to it — a job sent to a provisioning sandbox fails.

## Model catalog

| Model | Use case | Minimum tier |
| --- | --- | --- |
| google/gemma-4-E2B-it | text generation | small |
| Qwen/Qwen3-4B | text generation | small |
| Qwen/Qwen3.5-9B | text and vision | small |
| openai/whisper-large-v3-turbo | speech to text | small |
| k2-fsa/OmniVoice | text to speech | small |
| stabilityai/stable-audio-open-1.0 | audio generation | small |
| rtdetr-v2-r50vd | object detection | small |
| google/gemma-4-26B-A4B-it | text and vision | medium |
| Qwen/Qwen3.5-27B | text and vision | medium |
| black-forest-labs/FLUX.1-dev | image generation | medium |
| google/gemma-4-31B-it | text and vision | medium |

Pick the smallest tier that supports the largest model you need; one medium sandbox can serve both. Name exact models with `models`, or prepare a whole class with `model_categories` (vlm, object_detection, speech_to_text, text_to_speech, image_generation, audio_generation, text_generation).

## Cost

Billing is runtime-based, recorded when the sandbox stops and measured from started_at to stopped_at: small $1/hour, medium $3.50/hour. A sandbox keeps billing until stop_sandbox runs, so reuse one across a workflow and stop it when the work is done. Limits: 5 concurrent small or 3 medium, 24 hours maximum runtime each.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | Human-readable name; VideoDB generates one if omitted. |
| `tier` | string | No | Compute tier. small covers object detection and the lighter VLMs; medium is needed for FLUX and the larger VLMs. |
| `models` | string | No | Exact model names to prepare, e.g. ["rtdetr-v2-r50vd"]. Use these when the workflow is known. |
| `callback_url` | string | No | Webhook VideoDB calls on provisioning events. |
| `model_categories` | string | No | Model classes to prepare instead of exact names, e.g. ["vlm","object_detection"]. |

### Dataset search

**Slug:** `VIDEODB_MCP_DATASET_SEARCH`

Search a hosted corpus of 30+ public robot-learning and human-activity datasets (robot and humanoid manipulation, real and simulated, drone flights, egocentric and exocentric human video) for training data. Use it when the user wants to find, count, sample, filter, verify or export episodes, demonstrations or clips for robotics, embodied AI, imitation learning, VLA or policy training, even if they name no dataset. It searches only this corpus, never the user's own VideoDB videos, and its result sets work only with get_result_set, list_result_shots and export_result_set. For which datasets exist and what fields they have, call list_datasets instead; it answers at once.

A search agent does the work. It matches the meaning of each record's annotation sentence, filters on fields, counts episodes and, when asked, judges each sentence against the request (rows then carry tier: confirmed, partial, rejected or unjudged). It reads text and fields only and cannot see the footage: it cannot watch clips or classify what the frames show (blur, focus, lighting, image quality). Don't ask it to; it will say so.

Write the message as the user's goal in plain language, one goal per message. State every restriction explicitly, naming datasets as list_datasets spells them ("only Ego-Exo4D", "human video only, no robot datasets", "real, not sim"). Ask for judging only when the user wants hits verified; it is slower.

Returns at once with {session_id, msg_id, status:'running'}; this is not the answer. Poll get_search_status(msg_id) about every 10 s until status is 'success' or 'error'. A plain search takes seconds to a minute; judging or a multi-step request can take several minutes. One turn runs per session at a time; wait for it before sending the next message. Pass session_id on every follow-up ("of those, only kitchens", "verify them", "export the confirmed ones") so the agent refines its earlier sets; omit it only for a new, unrelated search.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `message` | string | Yes | The user's goal in plain language: the task, activity or scene, every dataset or field restriction, and whether hits should be verified. |
| `session_id` | string | No | session_id from an earlier dataset_search, to continue that conversation and refer to its result sets. |

### Delete audio

**Slug:** `VIDEODB_MCP_DELETE_AUDIO`

Permanently delete an audio file from a VideoDB collection. This cannot be undone.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `audio_id` | string | Yes | VideoDB audio ID (starts with a-). |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### Delete collection

**Slug:** `VIDEODB_MCP_DELETE_COLLECTION`

Permanently delete a collection and everything in it. This cannot be undone. The account's default collection cannot be deleted.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `collection_id` | string | Yes | ID of the collection to delete (the default collection is refused). |

### Delete image

**Slug:** `VIDEODB_MCP_DELETE_IMAGE`

Permanently delete an image from a VideoDB collection. This cannot be undone.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `image_id` | string | Yes | VideoDB image ID (starts with img-). |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### Delete index

**Slug:** `VIDEODB_MCP_DELETE_INDEX`

Permanently delete a v2 index (its retrieval structures only; the video and understanding artifacts are kept). This cannot be undone.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `index_id` | string | Yes | Index ID (from create_index / list_indexes). |
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### Delete scene index

**Slug:** `VIDEODB_MCP_DELETE_SCENE_INDEX`

Permanently delete one visual scene index of a video (the video itself is kept). This cannot be undone.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |
| `scene_index_id` | string | Yes | Scene index ID to delete. |

### Delete understanding

**Slug:** `VIDEODB_MCP_DELETE_UNDERSTANDING`

Permanently delete an understanding run and its stored analyzer artifacts (indexes built from it keep their own data). This cannot be undone.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |
| `understanding_id` | string | Yes | Understanding run ID (from understand_video / list_understandings). |

### Delete video

**Slug:** `VIDEODB_MCP_DELETE_VIDEO`

Permanently delete a video from a VideoDB collection. This cannot be undone.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### Download stream

**Slug:** `VIDEODB_MCP_DOWNLOAD_STREAM`

Render any VideoDB stream URL (from generate_clip, compile_clips, add_subtitles or get_video) into a downloadable MP4 file. 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 download_url. A stream that was already exported answers with download_url at once.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | File name for the download, e.g. 'highlights.mp4'. |
| `stream_url` | string | Yes | A VideoDB stream URL (.m3u8). |

### Download timeline render

**Slug:** `VIDEODB_MCP_DOWNLOAD_TIMELINE_RENDER`

Start an MP4 export of a stream produced by render_timeline. 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 download_url. Older backends answer with download_url directly.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `stream_url` | string | Yes | stream_url returned by render_timeline. |

### Export reel

**Slug:** `VIDEODB_MCP_EXPORT_REEL`

MP4 export run by the player's reel view. Not for direct use.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | File name of the MP4. |
| `clips` | array | No | Clips in reel order; starts the export. |
| `stage` | string ("joining" | "rendering") | No | Stage of a running export. |
| `output_url` | string | No | Job URL of a running export. |

### Export result set

**Slug:** `VIDEODB_MCP_EXPORT_RESULT_SET`

Export a result set from dataset_search as downloadable training data, by content_id, in the set's rank order: at most 50 rows per call for lerobot or rlds, 10 for mcap (also the fallback when formats is omitted). For a larger set, call again with offset set to the previous reply's rows.next_offset until it is null; each call is its own export and download. A slice that is still too large to export at once is refused with a smaller limit to use. Export a finished set only (after get_search_status reports success); to export a subset such as the confirmed tier, ask dataset_search for that set in the same session and export its content_id.

The output depends on each row's dataset and its export lane in list_datasets, not on the annotation layer that matched:
- robot: one training format per export, lerobot, rlds or mcap. Each row exports its whole episode with the recorded state, action and every camera; rows from the same episode become one episode. Only what the source records is exported; multi-dimensional sensor arrays such as depth maps, LiDAR and tactile grids are left out; nothing is inferred or synthesized.
- clip: MP4 only, frame-accurate clips of each annotated span plus clips/manifest.json with the annotation text. formats does not apply.
- blocked: skipped and listed in errors.json while the rest of the set exports.
A set with robot rows needs a format: use the one the user named, or ask them (LeRobot/Hugging Face → lerobot, RLDS/TFDS/Open X-Embodiment → rlds, ROS 2/Foxglove → mcap); left out, it falls back to mcap. A mixed set writes the robot format and the MP4 clips side by side.

Returns {export_id, status:'queued', rows:{offset, limit, total, next_offset}} at once. Next: poll get_export_status(export_id).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `fps` | string | No | Frame rate lerobot and rlds episodes are sampled at; mcap keeps the recorded timing. |
| `limit` | string | No | Rows to export in this call: at most 50 for lerobot/rlds, 10 for mcap. Omit for that maximum. |
| `offset` | string | No | First row to export, in rank order; use the previous reply's rows.next_offset. |
| `formats` | string | No | Robot-lane rows only: exactly one of lerobot, rlds, mcap (falls back to mcap if omitted). Clip-lane rows are always MP4 clips; omit for a set with no robot rows. |
| `content_id` | string | Yes | A result set's content_id (srs-…), from get_search_status → result_sets[].content_id. |
| `mcap_profile` | string | No | MCAP message encoding: foxglove for Foxglove Studio, ros2 for ROS 2 tooling. |
| `rlds_action_fields` | string | No | RLDS only: split the action vector into named fields, an index for a scalar or a list of indices for a vector. Omit to keep the vector whole. |
| `rlds_observation_names` | string | No | RLDS only: source stream → observation key, default {front:'image', wrist:'hand_image', state:'robot_state'}. |

### Export rtstream recording

**Slug:** `VIDEODB_MCP_EXPORT_RTSTREAM_RECORDING`

Export the latest completed recording of a real-time stream as a regular VideoDB video (or audio) asset. Requires the stream to have been connected with store=true and to be stopped. Idempotent: repeated calls return the same asset.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | Asset name; default "<stream name> - Recording". |
| `rtstream_id` | string | Yes | VideoDB real-time stream ID (starts with rts-). |

### Generate clip

**Slug:** `VIDEODB_MCP_GENERATE_CLIP`

Cut a clip (or a supercut of several segments) from a single video without re-encoding. 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 (watchable in any browser).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `timeline` | array | Yes | Segments as [start_seconds, end_seconds] pairs, e.g. [[10, 25], [60, 90]]. |
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### Generate thumbnail

**Slug:** `VIDEODB_MCP_GENERATE_THUMBNAIL`

Get the default thumbnail of a video, or generate one from a specific timestamp (in seconds).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `time_seconds` | string | No | Timestamp to capture; omit for the default thumbnail. |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### Generate transcript

**Slug:** `VIDEODB_MCP_GENERATE_TRANSCRIPT`

Transcribe a video or audio file (speech to text), optionally forcing a fresh transcription or hinting the spoken language. Returns immediately with {status:'processing', output_url}; poll output_url (~30 s apart) with an HTTP GET or with get_job_result until status is done, then read the text with get_transcript. Media that already has a transcript answers done at once.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `force` | string | No | Re-transcribe even if a transcript already exists. |
| `media_id` | string | No | VideoDB media ID: m- (video) or a- (audio). |
| `video_id` | string | No | Deprecated alias of media_id; accepts a video ID (m-). |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |
| `language_code` | string | No | BCP-47/ISO language code of the speech, e.g. 'en', 'hi'. Auto-detected if omitted. |

### Get account usage

**Slug:** `VIDEODB_MCP_GET_ACCOUNT_USAGE`

Get the connected VideoDB account's current usage and billing summary as reported by VideoDB.

### Get analyzer output

**Slug:** `VIDEODB_MCP_GET_ANALYZER_OUTPUT`

Return the raw artifact one analyzer produced in an understanding run, such as transcript segments or per-scene descriptions with start/end. Requires the analyzer status to be done (see get_understanding). Lists are capped at 200 items.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `analyzer_id` | string | No | Analyzer ID (an_...). Give this or analyzer_name. |
| `analyzer_name` | string | No | Analyzer name inside the run, e.g. 'transcript', 'scene', 'objects'. Give this or analyzer_id. |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |
| `understanding_id` | string | Yes | Understanding run ID (from understand_video / list_understandings). |

### Get audio

**Slug:** `VIDEODB_MCP_GET_AUDIO`

Get metadata for one audio file: name, duration and size.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `audio_id` | string | Yes | VideoDB audio ID (starts with a-). |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### Get collection

**Slug:** `VIDEODB_MCP_GET_COLLECTION`

Get one collection's ID, name, description and public/private visibility.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### Get export status

**Slug:** `VIDEODB_MCP_GET_EXPORT_STATUS`

Poll an export_result_set job by export_id every 15–30 s until status is 'complete' or 'failed'. progress and summary report requested, exported and failed rows; a complete job can still hold a partial dataset, so read summary and tell the user what was left out (per-row reasons are in errors.json inside the download).

A complete export carries download.url and download.curl, valid for one hour and bound to the first machine that fetches it. Give the link to the user to download on their own machine; do not fetch it yourself unless you are the one who needs the files. For a machine behind a rotating IP, call again with portable=true for an unbound single-use link. Calling again mints a fresh link for the same bytes; compare download.sha256 with a copy already downloaded before fetching again. Exports are kept for 7 days.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `portable` | string | No | true for an unbound single-use link, for a machine behind a rotating IP. |
| `export_id` | string | Yes | export_id returned by export_result_set. |

### Get image

**Slug:** `VIDEODB_MCP_GET_IMAGE`

Get metadata for one image: name and URL.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `image_id` | string | Yes | VideoDB image ID (starts with img-). |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### Get index

**Slug:** `VIDEODB_MCP_GET_INDEX`

Get one v2 index manifest by ID or name: status (building/ready/failed), record count, capabilities and field schema.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | Index name. Give this or index_id. |
| `index_id` | string | No | Index ID. Give this or name. |
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### Get index records

**Slug:** `VIDEODB_MCP_GET_INDEX_RECORDS`

Page through the records stored in a v2 index (scene_id, start, end, data). Pass next_cursor from the previous page to continue.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `limit` | string | No | Records per page. |
| `cursor` | string | No | next_cursor from the previous page. |
| `index_id` | string | Yes | Index ID (from create_index / list_indexes). |
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### Get job result

**Slug:** `VIDEODB_MCP_GET_JOB_RESULT`

Fetch the result of a background job started by upload_media, render_timeline, download_timeline_render, download_stream, generate_clip, compile_clips, create_highlight_clip, reframe_video, generate_transcript or translate_transcript. Pass the output_url those tools returned. While the job is running the reply is {status:'processing'} with the same output_url — wait ~30 s and call again; when it finishes the reply is the job's result (media record, stream_url + player_url, download_url, shots, or translated segments). If the job itself failed the reply is {status:'failed', message} — the job will not recover, so do not keep polling. If it failed because the account is out of credit the reply is {status:'insufficient_credit', console_url} instead. Only VideoDB job URLs are accepted.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `output_url` | string | Yes | The output_url returned by a job-starting tool. |

### Get media download url

**Slug:** `VIDEODB_MCP_GET_MEDIA_DOWNLOAD_URL`

Get a signed, time-limited download URL for an audio file (a-) or image (img-). Video IDs (m-) are not supported here — use download_stream for an MP4 of a video.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `media_id` | string | Yes | VideoDB media ID: m- (video), a- (audio) or img- (image). |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### Get result set

**Slug:** `VIDEODB_MCP_GET_RESULT_SET`

Summary of a result set from dataset_search: name, count (rows), video_count, scope (the query and filters that built it), complete (false when a cap cut it short), tiers (confirmed/partial/rejected/unjudged counts, when judged), score range, and the top value counts of each low-cardinality field (e.g. dataset, task, tier). Use it to answer "how many" and "what's in it" without paging rows, and to pick values for list_result_shots `where`. Many rows can share one annotation sentence, so a large count is not the same as varied data. The dataset counts say what export_result_set will produce; list_datasets gives each dataset's export lane. Sets belong to the caller and persist across conversations.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `content_id` | string | Yes | A result set's content_id (srs-…), from get_search_status → result_sets[].content_id. |

### Get rtstream

**Slug:** `VIDEODB_MCP_GET_RTSTREAM`

Get one real-time stream: name, status, sample rate, media types, creation time.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `rtstream_id` | string | Yes | VideoDB real-time stream ID (starts with rts-). |

### Get rtstream index records

**Slug:** `VIDEODB_MCP_GET_RTSTREAM_INDEX_RECORDS`

Read the records materialised into an understanding-backed index, optionally limited to a Unix-second start/end window. Paginated.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `end` | string | No |  |
| `page` | string | No | Page number (1-based). |
| `start` | string | No |  |
| `index_id` | string | Yes | Index ID (idx-…). |
| `page_size` | string | No | Items per page. |
| `rtstream_id` | string | Yes | VideoDB real-time stream ID (starts with rts-). |

### Get rtstream scenes

**Slug:** `VIDEODB_MCP_GET_RTSTREAM_SCENES`

Read the records a scene index has produced so far (Unix-second start/end plus description). Filter to a time window with start and end together; paginate with page/page_size.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `end` | string | No |  |
| `page` | string | No | Page number (1-based). |
| `start` | string | No |  |
| `page_size` | string | No | Items per page. |
| `rtstream_id` | string | Yes | VideoDB real-time stream ID (starts with rts-). |
| `scene_index_id` | string | Yes | Scene index ID (rtstream_index_id from list_rtstream_scene_indexes). |

### Get rtstream stream

**Slug:** `VIDEODB_MCP_GET_RTSTREAM_STREAM`

Generate a playable stream and player URL for a time window of a real-time stream. start and end are Unix timestamps in seconds (e.g. the start/end of a search hit or scene record).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `end` | integer | Yes | End time as a Unix timestamp in seconds. |
| `start` | integer | Yes | Start time as a Unix timestamp in seconds. |
| `rtstream_id` | string | Yes | VideoDB real-time stream ID (starts with rts-). |

### Get rtstream transcript

**Slug:** `VIDEODB_MCP_GET_RTSTREAM_TRANSCRIPT`

Read the real-time transcript of a stream (requires transcription started via connect_rtstream enable_transcript or set_rtstream_transcript_status). Filter by Unix-second start/end, or pass since to poll for new segments only.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `end` | string | No |  |
| `page` | string | No | Page number (1-based). |
| `since` | string | No | Only segments after this Unix timestamp (for polling). |
| `start` | string | No |  |
| `page_size` | string | No | Items per page. |
| `rtstream_id` | string | Yes | VideoDB real-time stream ID (starts with rts-). |

### Get rtstream understanding records

**Slug:** `VIDEODB_MCP_GET_RTSTREAM_UNDERSTANDING_RECORDS`

Read the analysis records an understanding produced for a Unix-second time range (start and end required). Paginated.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `end` | integer | Yes | End time as a Unix timestamp in seconds. |
| `page` | string | No | Page number (1-based). |
| `start` | integer | Yes | Start time as a Unix timestamp in seconds. |
| `output` | string | No | Analyzer output name (output_name given to understand_rtstream). |
| `page_size` | string | No | Items per page. |
| `rtstream_id` | string | Yes | VideoDB real-time stream ID (starts with rts-). |
| `understanding_id` | string | Yes | Understanding ID (und-…). |

### Get sandbox

**Slug:** `VIDEODB_MCP_GET_SANDBOX`

Get one sandbox: its status, tier, prepared models and lifetime. Statuses are provisioning (starting, not usable yet), active (ready for jobs), alert (usable but degraded), stopping, stopped and failed. Both stopped and failed are terminal — a sandbox cannot be restarted, so create a new one.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `sandbox_id` | string | Yes | Sandbox ID, from create_sandbox or list_sandboxes. |

### Get scene index

**Slug:** `VIDEODB_MCP_GET_SCENE_INDEX`

Return the per-scene records (start, end, description) of an existing legacy visual scene index. Output is capped at 200 scenes.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |
| `scene_index_id` | string | Yes | Scene index ID (from list_scene_indexes). |

### Get search status

**Slug:** `VIDEODB_MCP_GET_SEARCH_STATUS`

Poll a dataset_search turn by its msg_id; returns immediately. Call about every 10 s while status is 'running' (actions and updates show what the agent has done so far; relay progress if the wait is long). 'success' carries reply (what was searched, counts, top score, whether anything was capped, the next step) and result_sets: one per set the agent produced, each with content_id, name, count (rows), video_count and up to 10 preview rows. 'error' carries a reply saying what to do next; the session stays usable.

Relay reply to the user. Then use each content_id: get_result_set for totals and field counts, list_result_shots for the rows with their watch_url links, export_result_set for training files. To refine, call dataset_search again with the same session_id.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `msg_id` | string | Yes | msg_id returned by dataset_search. |

### Get transcode status

**Slug:** `VIDEODB_MCP_GET_TRANSCODE_STATUS`

Get the status and output of a transcode job started by transcode_media.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `job_id` | string | Yes | Transcode job ID returned by transcode_media. |

### Get transcript

**Slug:** `VIDEODB_MCP_GET_TRANSCRIPT`

Get the transcript of a video or audio file, either as plain text or with timestamped segments (per word, sentence, or time window). Reads an existing transcript only — media that has never been transcribed returns an error naming generate_transcript. Timestamped output is capped at 2000 segments; narrow with start/end or a coarser segmenter.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `end` | string | No | Only include speech before this second. |
| `start` | string | No | Only include speech after this second. |
| `media_id` | string | No | VideoDB media ID: m- (video) or a- (audio). |
| `video_id` | string | No | Deprecated alias of media_id; accepts a video ID (m-). |
| `segmenter` | string | No | How to split timestamped segments: one per word (default), per sentence, or fixed time windows. |
| `timestamped` | string | No | true → timestamped segments plus text; false → plain text only. |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |
| `segment_length` | string | No | Units per segment: words/sentences per segment, or seconds per segment when segmenter is 'time'. |

### Get understanding

**Slug:** `VIDEODB_MCP_GET_UNDERSTANDING`

Get the status of one understanding run and of each analyzer in it (pending, running, done, failed). v2 pipeline: understand_video (extract) → create_index (make retrievable) → semantic_search / query_index / aggregate_index / ask_video.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |
| `understanding_id` | string | Yes | Understanding run ID (from understand_video / list_understandings). |

### Get video

**Slug:** `VIDEODB_MCP_GET_VIDEO`

Get metadata for one video: name, duration, thumbnail, stream URL, and a player URL for watching it in a browser.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### Index rtstream audio

**Slug:** `VIDEODB_MCP_INDEX_RTSTREAM_AUDIO`

Start a continuous spoken-word index on a real-time stream: the live transcript is chunked by segmenter/segment_value and summarised with the prompt. Requires audio in media_types; transcription auto-starts unless auto_start_transcript=false.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | Index name. |
| `prompt` | string | No | How to summarise each transcript segment. |
| `segmenter` | string | No | How to chunk the transcript. |
| `model_name` | string | No | Model name; server default if omitted. |
| `rtstream_id` | string | Yes | VideoDB real-time stream ID (starts with rts-). |
| `segment_value` | string | No | Chunk size: words, sentences, or seconds depending on segmenter. |
| `auto_start_transcript` | string | No | Start transcription if it is not running. |

### Index rtstream scenes

**Slug:** `VIDEODB_MCP_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.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | Index name. |
| `prompt` | string | No | What to describe or watch for in each window. |
| `model_name` | string | No | Vision model name; server default if omitted. |
| `frame_count` | string | No | Frames sampled per window (default 5). |
| `rtstream_id` | string | Yes | VideoDB real-time stream ID (starts with rts-). |
| `window_seconds` | string | No | Length of each window in seconds; server default applies if omitted. |

### Legacy search collection

**Slug:** `VIDEODB_MCP_LEGACY_SEARCH_COLLECTION`

Search every indexed video in a collection and get matching moments grouped by video, with timestamps and scores. Searches existing legacy v1 spoken-word/scene indexes. For indexes built by create_index, use search_video / search_collection instead.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `query` | string | Yes | Natural-language search query. |
| `index_type` | string | No | Index to search: spoken_word or scene. |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |
| `result_threshold` | string | No | Max results. |

### Legacy search video

**Slug:** `VIDEODB_MCP_LEGACY_SEARCH_VIDEO`

Search within one video and get matching moments with start/end timestamps, text, and relevance scores. Searches existing legacy v1 spoken-word/scene indexes. For indexes built by create_index, use search_video / search_collection instead.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `query` | string | Yes | What to look for, e.g. 'moments where pricing is discussed'. |
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `index_type` | string | No | Index to search: spoken_word or scene. |
| `search_type` | string | No | semantic or keyword matching. Keyword works on videos only. |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |
| `scene_index_id` | string | No | Scene index ID from list_scene_indexes. Required when search_type=keyword and index_type=scene. |
| `result_threshold` | string | No | Max results. |

### List assets

**Slug:** `VIDEODB_MCP_LIST_ASSETS`

List videos, audio files and images together in one paginated result, filtered by type, name pattern, duration or file size, and sorted by name, duration or size. Omit collection_id to search the whole account; give it to scope to one collection. Returns {assets: [...], pagination: {page, page_size, total_count, total_pages}}. Rows carry no creation timestamp, so the default created_at order is newest-first within each type rather than a single ordering across types; sort by name, duration or size for a total order. Image rows carry no URL — use get_image or get_media_download_url for one. Prefer this over list_videos/list_audios/list_images whenever the account is large or the answer needs filtering, sorting or paging.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | string | No | Page number (1-based). |
| `sort_by` | string | No | Field to sort on. created_at is newest-first per type only, since rows carry no timestamp. |
| `max_size` | string | No | Maximum file size in bytes. |
| `min_size` | string | No | Minimum file size in bytes. |
| `page_size` | string | No | Items per page. |
| `asset_type` | string | No | Asset types to include. Omitted = all three. |
| `sort_order` | string | No | Sort direction. |
| `max_duration` | string | No | Maximum duration in seconds (videos and audio). |
| `min_duration` | string | No | Minimum duration in seconds (videos and audio). |
| `name_pattern` | string | No | Case-insensitive regular expression matched against the asset name, e.g. 'keynote&#124;demo'. |
| `collection_id` | string | No | Scope to one collection. Omitted = every collection in the account. |

### List audios

**Slug:** `VIDEODB_MCP_LIST_AUDIOS`

List audio files in a VideoDB collection: IDs, names, durations and sizes. Returns {audios: [...]} with the first 200 files; `truncated: true` and `total` are set when the collection holds more. The endpoint has no pagination, so the rest can only be reached by get_audio with a known ID.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### List collections

**Slug:** `VIDEODB_MCP_LIST_COLLECTIONS`

List all collections in the connected VideoDB account, with their IDs, names, descriptions and visibility.

### List datasets

**Slug:** `VIDEODB_MCP_LIST_DATASETS`

The datasets in the hosted robot-learning and human-activity corpus that dataset_search searches. Each entry has its index name (what a row's dataset field holds), the dataset's name, what one record spans, its field groups (semantic: the annotation sentence that search matches; filter, aggregate, sort: the fields that can narrow, group or order it), and its export lane (robot: one of lerobot, rlds or mcap; clip: MP4 clips of each span; blocked: not exportable). Returns at once.

Use it to answer questions about the corpus itself (which datasets exist, what each records, which fields or annotation layers it has, what can be exported) and to spell a dataset restriction before a dataset_search. Record counts and the values a field takes are not here; ask dataset_search for those.

### List events

**Slug:** `VIDEODB_MCP_LIST_EVENTS`

List the events defined on this account (ID, label, prompt).

### List images

**Slug:** `VIDEODB_MCP_LIST_IMAGES`

List images in a VideoDB collection: IDs, names and URLs. Returns {images: [...]} with the first 200 images; `truncated: true` and `total` are set when the collection holds more. The endpoint has no pagination, so the rest can only be reached by get_image with a known ID.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### List indexes

**Slug:** `VIDEODB_MCP_LIST_INDEXES`

List the v2 indexes of a video (ID, name, status, capabilities, record count). v2 pipeline: understand_video (extract) → create_index (make retrievable) → semantic_search / query_index / aggregate_index / ask_video.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `use_for` | string | No | Only indexes supporting this capability. |
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### List invoices

**Slug:** `VIDEODB_MCP_LIST_INVOICES`

List the connected VideoDB account's invoices (first 200; `truncated` is set when more exist).

### List result shots

**Slug:** `VIDEODB_MCP_LIST_RESULT_SHOTS`

Rows of a result set, at most 200 per page. Each row is one annotated time span: video_id, start/end (seconds), text (the annotation sentence that matched), score, dataset (it decides what export_result_set produces), rank, its stored fields (e.g. episode_index, task, tier) and watch_url, a link to the source footage seeked to the span, or null when the source is not browser-playable. Present watch_url as a clickable link; these rows are not VideoDB media, so the video tools (show_video, generate_clip and the rest) do not take them.

`where` matches stored fields exactly ({tier:'confirmed'}, {dataset:'egoexo4d'}); take values from get_result_set. `q` is a case-insensitive substring match on the sentence. Returns {shots, next_cursor}; pass next_cursor back for the next page, null means the last page. A page can take several seconds, so page only as far as the user needs; export_result_set reads rows by content_id, so rows never need to be collected for export.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `q` | string | No | Case-insensitive text match on the row text. |
| `sort` | string | No |  |
| `limit` | string | No |  |
| `order` | string | No |  |
| `where` | string | No | Exact matches on stored fields, e.g. {tier:'confirmed'}. |
| `cursor` | string | No | next_cursor from the previous page. |
| `video_id` | string | No | Only rows from this video. |
| `min_score` | string | No | Drop rows scoring below this. |
| `content_id` | string | Yes | A result set's content_id (srs-…), from get_search_status → result_sets[].content_id. |

### List rtstreams

**Slug:** `VIDEODB_MCP_LIST_RTSTREAMS`

List real-time streams in the account with their IDs, names, status and media types. The API scopes this to the whole account, not one collection — each row carries its collection_id. Filter by status or name; paginate with limit/offset.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | Filter by name. |
| `limit` | string | No | Max streams to return. |
| `offset` | string | No | Number of streams to skip. |
| `status` | string | No | Filter by status, e.g. connected or stopped. |
| `ordering` | string | No | Sort field, prefix with - for descending, e.g. -created_at. |

### List rtstream alerts

**Slug:** `VIDEODB_MCP_LIST_RTSTREAM_ALERTS`

List the alerts attached to a stream index, with their event, callback and enabled state.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `index_id` | string | Yes | Scene index ID or index ID. |
| `index_kind` | string | No | scene_index = created by index_rtstream_scenes/index_rtstream_audio; index = created by create_rtstream_index. |
| `rtstream_id` | string | Yes | VideoDB real-time stream ID (starts with rts-). |

### List rtstream indexes

**Slug:** `VIDEODB_MCP_LIST_RTSTREAM_INDEXES`

List the understanding-backed indexes on a real-time stream with their status, source understanding and capabilities.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `rtstream_id` | string | Yes | VideoDB real-time stream ID (starts with rts-). |

### List rtstream scene indexes

**Slug:** `VIDEODB_MCP_LIST_RTSTREAM_SCENE_INDEXES`

List the scene (visual and audio) indexes on a real-time stream with their IDs, prompts and status.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `rtstream_id` | string | Yes | VideoDB real-time stream ID (starts with rts-). |

### List rtstream understandings

**Slug:** `VIDEODB_MCP_LIST_RTSTREAM_UNDERSTANDINGS`

List the continuous understanding jobs on a real-time stream with their status, segmentation, analyzers and output descriptors.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `rtstream_id` | string | Yes | VideoDB real-time stream ID (starts with rts-). |

### List sandboxes

**Slug:** `VIDEODB_MCP_LIST_SANDBOXES`

List the account's sandboxes with their status, tier and prepared models. Filter with status="active" to find a running sandbox to reuse before creating (and paying for) another one.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | string | No | Page number (1-based). |
| `status` | string | No | Only return sandboxes in this state. Omitted = every state. |
| `page_size` | string | No | Sandboxes per page, max 100. |

### List scene indexes

**Slug:** `VIDEODB_MCP_LIST_SCENE_INDEXES`

List the visual (scene) indexes that exist for a video, including their IDs, names and status. Useful before a scene search.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### List thumbnails

**Slug:** `VIDEODB_MCP_LIST_THUMBNAILS`

List every thumbnail image generated for a video (see generate_thumbnail), with image IDs and URLs.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### List understandings

**Slug:** `VIDEODB_MCP_LIST_UNDERSTANDINGS`

List every understanding run of a video with its status and analyzers. v2 pipeline: understand_video (extract) → create_index (make retrievable) → semantic_search / query_index / aggregate_index / ask_video.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### List videos

**Slug:** `VIDEODB_MCP_LIST_VIDEOS`

List videos in a VideoDB collection: IDs, names, durations, and playable stream/player URLs. Returns {videos: [...]} with the first 200 videos; `truncated: true` and `total` are set when the collection holds more. The endpoint has no pagination, so use search_videos_by_title or search_collection to reach videos beyond the cap.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### Load assets

**Slug:** `VIDEODB_MCP_LOAD_ASSETS`

Pages, filters and opens items in the player's gallery view. Not for direct use.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `ids` | array | No | Show these assets instead of a listing (m-…, a-… or img-… IDs). One ID opens it directly. |
| `page` | integer | No | Page to load. |
| `title` | string | No | Heading, e.g. the collection's name. |
| `asset_type` | string ("video" | "audio" | "image") | No | Show only videos, audio or images. Omitted = all three. |
| `collection_id` | string | No | Collection to show. Omitted = every collection in the account. |

### Query index

**Slug:** `VIDEODB_MCP_QUERY_INDEX`

Structured filter/sort over one index built by create_index (use_for includes 'query') in a video or across a collection. Provide exactly one of index_id or index_name. Returns matching moments without semantic ranking.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `sort` | string | No | Sort order, e.g. [["start", "asc"]]. |
| `limit` | string | No | Max records (default 100). |
| `filter` | string | No | Structured filter over index fields, e.g. [{"field": "label", "op": "==", "value": "phone"}] or {"activity": "walking"}. |
| `index_id` | string | No | Index ID from list_indexes. Provide exactly one of index_id or index_name. |
| `video_id` | string | No | VideoDB video ID (starts with m-). Omit to run against the whole collection. |
| `index_name` | string | No | Index name from list_indexes. Provide exactly one of index_name or index_id. |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |
| `return_fields` | string | No | Index fields to hydrate into each moment's metadata; "all" for everything. |

### Reframe video

**Slug:** `VIDEODB_MCP_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.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `end` | string | No | Segment end in seconds. |
| `mode` | string | No | simple = centre crop; smart = subject-aware crop. |
| `start` | string | No | Segment start in seconds; omit for the whole video. |
| `target` | string | No | Output frame: a preset (vertical 9:16, square 1:1, landscape 16:9) or explicit {width, height}. |
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `callback_url` | string | No | Optional webhook URL VideoDB calls when the job finishes (makes the call return immediately). |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### Remove video storage

**Slug:** `VIDEODB_MCP_REMOVE_VIDEO_STORAGE`

Delete the stored media bytes of a video while keeping its record, indexes and transcripts. Streaming the original afterwards is no longer possible. This cannot be undone.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### Render timeline

**Slug:** `VIDEODB_MCP_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.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `tracks` | array | Yes | Tracks in the timeline; the whole edit is described here. |
| `background` | string | No | Canvas background colour, hex. Default #000000. |
| `resolution` | string | No | Output resolution as WIDTHxHEIGHT, e.g. 1920x1080 or 1080x1920. Default 1280x720. |

### Search collection

**Slug:** `VIDEODB_MCP_SEARCH_COLLECTION`

Search every indexed video in a collection and get matching moments grouped by video, with timestamps and scores. Uses Search V2 over indexes built by create_index. For existing legacy spoken-word/scene indexes, use the legacy_search_* tools instead.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `mode` | string | No | default = single-step planned retrieval; deepsearch = multi-step investigation with follow-up sessions. |
| `query` | string | Yes | Natural-language search query. |
| `top_k` | string | No | Maximum moments to return. |
| `session_id` | string | No | Continue a deepsearch session (session_id from a previous response). Only valid with mode=deepsearch. |
| `include_clip` | string | No | Also return a playable clip for each moment. |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### Search rtstream

**Slug:** `VIDEODB_MCP_SEARCH_RTSTREAM`

Semantic search over the indexed records of a real-time stream (requires a scene index or index). Returns matching windows with Unix-second start/end, text and score; use get_rtstream_stream with those timestamps to watch one.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `query` | string | Yes | Natural-language query, e.g. 'a person entering through the gate'. |
| `index_type` | string | No | Restrict to an index type, e.g. scene. |
| `rtstream_id` | string | Yes | VideoDB real-time stream ID (starts with rts-). |
| `scene_index_id` | string | No | Restrict to one scene index. |
| `score_threshold` | string | No | Minimum relevance score. |
| `result_threshold` | string | No | Max results. |

### Search video

**Slug:** `VIDEODB_MCP_SEARCH_VIDEO`

Search within one video and get matching moments with start/end timestamps, text, and relevance scores. Uses Search V2 over indexes built by create_index. For existing legacy spoken-word/scene indexes, use the legacy_search_* tools instead.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `mode` | string | No | default = single-step planned retrieval; deepsearch = multi-step investigation with follow-up sessions. |
| `query` | string | Yes | What to look for, e.g. 'moments where pricing is discussed'. |
| `top_k` | string | No | Maximum moments to return. |
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `session_id` | string | No | Continue a deepsearch session (session_id from a previous response). Only valid with mode=deepsearch. |
| `include_clip` | string | No | Also return a playable clip for each moment. |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### Search videos by title

**Slug:** `VIDEODB_MCP_SEARCH_VIDEOS_BY_TITLE`

Find videos in a collection whose title matches a natural-language query. Returns the matching videos with stream/player URLs.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `query` | string | Yes | Title or phrase to look for. |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### Semantic search

**Slug:** `VIDEODB_MCP_SEMANTIC_SEARCH`

Vector search over one or more indexes built by create_index (use_for includes 'semantic') in a video or across a collection. Returns matching moments with scores.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `query` | string | Yes | Natural-language query. |
| `top_k` | string | No | Max moments to return (default 10). |
| `filter` | string | No | Structured filter over index fields, e.g. [{"field": "label", "op": "==", "value": "phone"}] or {"activity": "walking"}. |
| `video_id` | string | No | VideoDB video ID (starts with m-). Omit to run against the whole collection. |
| `index_ids` | string | No | Restrict to these index IDs. |
| `index_names` | string | No | Restrict to these index names. |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |
| `return_fields` | string | No | Index fields to hydrate into each moment's metadata; "all" for everything. |
| `score_threshold` | string | No | Minimum similarity score. |

### Set rtstream alert status

**Slug:** `VIDEODB_MCP_SET_RTSTREAM_ALERT_STATUS`

Enable or disable an alert on a stream index without deleting it.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `action` | string ("enable" | "disable") | Yes |  |
| `alert_id` | string | Yes | Alert ID from create_rtstream_alert or list_rtstream_alerts. |
| `index_id` | string | Yes | Scene index ID or index ID the alert belongs to. |
| `index_kind` | string | No | scene_index = created by index_rtstream_scenes/index_rtstream_audio; index = created by create_rtstream_index. |
| `rtstream_id` | string | Yes | VideoDB real-time stream ID (starts with rts-). |

### Set rtstream index status

**Slug:** `VIDEODB_MCP_SET_RTSTREAM_INDEX_STATUS`

Resume or pause an understanding-backed index on a real-time stream. Existing records stay searchable while paused.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `action` | string ("start" | "stop") | Yes | start = begin/resume processing, stop = pause it. |
| `index_id` | string | Yes | Index ID (idx-…). |
| `rtstream_id` | string | Yes | VideoDB real-time stream ID (starts with rts-). |

### Set rtstream scene index status

**Slug:** `VIDEODB_MCP_SET_RTSTREAM_SCENE_INDEX_STATUS`

Resume or pause a scene index on a real-time stream. Existing records stay readable while paused.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `action` | string ("start" | "stop") | Yes | start = begin/resume processing, stop = pause it. |
| `rtstream_id` | string | Yes | VideoDB real-time stream ID (starts with rts-). |
| `scene_index_id` | string | Yes | Scene index ID (rtstream_index_id from list_rtstream_scene_indexes). |

### Set rtstream status

**Slug:** `VIDEODB_MCP_SET_RTSTREAM_STATUS`

Start (connect) or stop (disconnect) ingestion of a real-time stream. Indexes and transcripts only receive data while the stream is started.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `action` | string ("start" | "stop") | Yes | start = begin/resume processing, stop = pause it. |
| `rtstream_id` | string | Yes | VideoDB real-time stream ID (starts with rts-). |

### Set rtstream transcript status

**Slug:** `VIDEODB_MCP_SET_RTSTREAM_TRANSCRIPT_STATUS`

Start or stop real-time transcription on a stream. The stream must be started and capturing audio. Returns the transcription status with start/end times.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `mode` | string | No | Stop mode (ignored on start): graceful finishes in-flight audio, force stops immediately. |
| `action` | string ("start" | "stop") | Yes | start = begin/resume processing, stop = pause it. |
| `engine` | string | No | Transcription engine; server default assemblyai. |
| `rtstream_id` | string | Yes | VideoDB real-time stream ID (starts with rts-). |

### Set rtstream understanding status

**Slug:** `VIDEODB_MCP_SET_RTSTREAM_UNDERSTANDING_STATUS`

Resume or pause a continuous understanding job on a real-time stream. Existing records stay readable while paused.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `action` | string ("start" | "stop") | Yes | start = begin/resume processing, stop = pause it. |
| `rtstream_id` | string | Yes | VideoDB real-time stream ID (starts with rts-). |
| `understanding_id` | string | Yes | Understanding ID (und-…). |

### Show assets

**Slug:** `VIDEODB_MCP_SHOW_ASSETS`

Show the user's videos, audio files and images as a browsable gallery in the chat, or open one of them. Use it whenever the user wants to see, browse or pick from what is in a collection or account, or to view one audio file or image. The user can filter by type, page through and open any item there (videos play, audio plays, images open full size), so don't list the assets yourself. Pass ids to show specific assets; one ID opens it directly. For one video or moments in a video, use show_video instead.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `ids` | array | No | Show these assets instead of a listing (m-…, a-… or img-… IDs). One ID opens it directly. |
| `title` | string | No | Heading, e.g. the collection's name. |
| `asset_type` | string ("video" | "audio" | "image") | No | Show only videos, audio or images. Omitted = all three. |
| `collection_id` | string | No | Collection to show. Omitted = every collection in the account. |

### Show index

**Slug:** `VIDEODB_MCP_SHOW_INDEX`

Show an index of a video on its timeline in the chat, with a table of its records: a v2 index (index_id), a legacy scene index (scene_index_id) or the transcript (transcript: true). Use it whenever the user wants to see or browse what an index or transcript holds. The view pages the records itself, so don't fetch them with get_index_records first.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `index_id` | string | No | A v2 index (from create_index / list_indexes). |
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `transcript` | boolean | No | Show the video's transcript instead of an index. |
| `collection_id` | string | No | Collection of video_id. |
| `scene_index_id` | string | No | A legacy scene index (from list_scene_indexes). |

### Show understanding

**Slug:** `VIDEODB_MCP_SHOW_UNDERSTANDING`

Show an understanding run on the video's timeline in the chat: each analyzer's status while the run works, then one lane per analyzer with its segments, the data at the playing time and object boxes on the video. Use it after understand_video, or whenever the user wants to see or review what the analyzers found. The view loads the output itself, so don't fetch it with get_analyzer_output first.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `collection_id` | string | No | Collection of video_id. |
| `understanding_id` | string | Yes | Understanding run ID (from understand_video / list_understandings). |

### Show video

**Slug:** `VIDEODB_MCP_SHOW_VIDEO`

Play one or more VideoDB videos for the user in an inline player, instead of only pasting links. Use it whenever the user wants to watch, preview or review something: a video, a generated clip, a render, or search results. Pass each video as an item by video_id (or stream_url); several items become a playlist (e.g. one per search hit, titled with what the moment shows). start/end play just that range. For a highlight reel, supercut or 'best moments' video, use layout 'reel' with the clips in order: it plays them back to back at once and the user can download the reel as an MP4 from the player, so don't call compile_clips or download_stream yourself for it. For search results inside one video, pass that video once with the hits as moments: they are marked on the timeline and listed under the player.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `items` | array | Yes |  |
| `title` | string | No | Reel title, e.g. '60-second highlights'. Also names the MP4. |
| `layout` | string ("player" | "reel") | No | player: one video, or a playlist of moments. reel: clips cut from videos and played back to back as one highlight reel the user can download as an MP4; every item needs video_id, start and end. |

### Stop sandbox

**Slug:** `VIDEODB_MCP_STOP_SANDBOX`

Stop a sandbox and end its billing. This is permanent — a stopped sandbox cannot be restarted, and any job still routed to it fails; create a new sandbox to run more work. Returns while the status is still "stopping"; poll get_sandbox for "stopped". Leave grace true to let running jobs finish first.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `grace` | string | No | Wait for in-flight jobs to finish before teardown. false kills them immediately. |
| `sandbox_id` | string | Yes | Sandbox ID, from create_sandbox or list_sandboxes. |

### Submit feedback

**Slug:** `VIDEODB_MCP_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.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `goal` | string | Yes | What the user was trying to do in this conversation, e.g. 'cut every goal from a match into one highlight reel'. |
| `summary` | string | Yes | One line on what went wrong or what is missing. |
| `category` | string ("missing_capability" | "wrong_result" | "error" | "confusing_tool" | "other") | Yes | missing_capability: no tool can do it. wrong_result: a tool succeeded but the output was wrong. error: a tool failed. confusing_tool: unclear inputs or behaviour. other: anything else. |
| `expected` | string | Yes | What the user or you expected VideoDB to do. |
| `use_case` | string | No | The bigger picture, if known: what they are building or why, e.g. 'sports clips app for a youth league'. |
| `related_tool` | string | No | The tool involved, if any, e.g. search_video. |
| `what_happened` | string | Yes | What actually happened: the calls made, what they returned or the error, and where it fell short. |

### Transcode media

**Slug:** `VIDEODB_MCP_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.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `mode` | string | No | economy = cheaper/slower, lightning = faster. |
| `mute` | string | No | Strip the audio track. |
| `source` | string | Yes | Direct media URL; YouTube watch pages are not supported by the transcoder. |
| `quality` | string | No | Encoder CRF quality, 1–51; lower = better (default 23). |
| `framerate` | string | No | Output frames per second, 1–60. |
| `resolution` | string | No | Output height in pixels, 240–1080. |
| `resize_mode` | string | No | How to reach aspect_ratio: crop edges, fit (letterbox) or pad with bars. |
| `aspect_ratio` | string | No | Output aspect ratio, e.g. "16:9", "9:16", "1:1". |
| `callback_url` | string | Yes | Webhook URL VideoDB calls when the job finishes (required). |

### Translate transcript

**Slug:** `VIDEODB_MCP_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.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `language` | string | Yes | Target language, e.g. 'Spanish' or 'fr'. |
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `callback_url` | string | No | Optional webhook URL VideoDB calls when the job finishes (makes the call return immediately). |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |
| `additional_notes` | string | No | Style guidance for the translation, e.g. 'formal register'. |

### Understand rtstream

**Slug:** `VIDEODB_MCP_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.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `store` | string | No | Persist output so it can be indexed. Must be true to index. |
| `prompt` | string | Yes | What to describe or monitor in each window. |
| `frame_count` | string | No | Frames sampled per window. |
| `output_name` | string | No | Name of the analyzer output (used as index source). |
| `rtstream_id` | string | Yes | VideoDB real-time stream ID (starts with rts-). |
| `user_context` | string | No | Optional, never required: background from the conversation that helps VideoDB prepare and index this media for the user's goal. Pass whatever is already known and leave out what isn't; don't ask the user for it or hold the call back to collect it. Useful details: what the media is (type of content, subject, people or brands, language, length or source, e.g. 'a 40-min recorded Zoom sales demo of our CRM, English'); the user's use case and who it's for (role, product, project); what they want from this upload or run and what they'll do with it (e.g. 'find every objection the prospect raises and cut a 2-min highlight for the sales team'); any constraints they stated (languages, accuracy, deadline, format). Use the user's own words; don't invent details. |
| `window_seconds` | string | No | Length of each analysis window in seconds. |

### Understand video

**Slug:** `VIDEODB_MCP_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.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `sampling` | string | No | Default frame selection for every visual analyzer; an analyzer's own sampling wins. |
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `analyzers` | array | Yes | Analyzers to run, e.g. [{"type":"spoken_words"}, {"type":"vlm","config":{"prompt":"Describe the scene"}}]. See the tool description for the config keys each type accepts. |
| `transform` | string | No | Preprocessing for the whole run, e.g. {"resolution":"480p"} to cut cost and latency. |
| `callback_url` | string | No | Optional webhook URL VideoDB calls when the job finishes (makes the call return immediately). |
| `segmentation` | string | No | One object, not an array: {"type":"shot","threshold":30} (default) or {"type":"time","seconds":5}. Shared by every visual analyzer in the run. |
| `user_context` | string | No | Optional, never required: background from the conversation that helps VideoDB prepare and index this media for the user's goal. Pass whatever is already known and leave out what isn't; don't ask the user for it or hold the call back to collect it. Useful details: what the media is (type of content, subject, people or brands, language, length or source, e.g. 'a 40-min recorded Zoom sales demo of our CRM, English'); the user's use case and who it's for (role, product, project); what they want from this upload or run and what they'll do with it (e.g. 'find every objection the prospect raises and cut a 2-min highlight for the sales team'); any constraints they stated (languages, accuracy, deadline, format). Use the user's own words; don't invent details. |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### Update collection

**Slug:** `VIDEODB_MCP_UPDATE_COLLECTION`

Rename a collection, change its description, or switch it between public and private. Only the fields given are changed; at least one is required.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | No | New collection name. |
| `is_public` | string | No | true = publicly viewable, false = private. |
| `description` | string | No | New description. |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### Update video

**Slug:** `VIDEODB_MCP_UPDATE_VIDEO`

Update a video's display name.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | New display name. |
| `video_id` | string | Yes | VideoDB video ID (starts with m-). |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |

### Upload media

**Slug:** `VIDEODB_MCP_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.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `url` | string | Yes | Public URL of the media (or a YouTube link). |
| `name` | string | No | Optional display name. |
| `media_type` | string | No | Media type to store the URL as. Defaults to video — set 'audio' or 'image' explicitly for an audio file or an image, or it is processed as a video. |
| `description` | string | No | Optional description stored with the media. |
| `callback_url` | string | No | Optional webhook URL VideoDB calls when the job finishes (makes the call return immediately). |
| `user_context` | string | No | Optional, never required: background from the conversation that helps VideoDB prepare and index this media for the user's goal. Pass whatever is already known and leave out what isn't; don't ask the user for it or hold the call back to collect it. Useful details: what the media is (type of content, subject, people or brands, language, length or source, e.g. 'a 40-min recorded Zoom sales demo of our CRM, English'); the user's use case and who it's for (role, product, project); what they want from this upload or run and what they'll do with it (e.g. 'find every objection the prospect raises and cut a 2-min highlight for the sales team'); any constraints they stated (languages, accuracy, deadline, format). Use the user's own words; don't invent details. |
| `collection_id` | string | No | VideoDB collection ID. Defaults to "default" (every account has one). |
