Get Media Context
get_media_contextFetch bounded authoring context for a media item: dimensions/thumbnail, compact face roster, transcript counts/sample, temporal grids, and fact readiness. Transcript and word-grid counts cover one page only (default 20 utterances); pass transcript.data.pagination.nextCursor as after to get_media_context for the next context page, or use get_transcript for exact paginated word timings.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mediaItemId": "<mediaItemId>"
},
"name": "get_media_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Zero-based utterance cursor from transcript.data.pagination.nextCursor. | |
| limit | No | Transcript utterances per context page (default 20, maximum 100). | |
| projectId | No | Read the item through this project, for media shared into it. | |
| mediaItemId | Yes | mediaItemId (path). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| faces | No | ||
| facts | No | Derived facts about this source (subject tracks, mattes): what has been computed, its status, and what it was billed. Same shape as GET /media/{id}/facts. | |
| width | No | ||
| height | No | ||
| offers | No | Enhancements this source does not have yet, with a server quote. Same shape as GET /media/{id}/facts. Mattes are quoted per-window via POST /media/{id}/matte, never here. | |
| mediaId | No | ||
| beatGrid | No | The MUSIC-role rhythm grid (audio-substrate MVP). Present only for a music bed that carries a computed beat grid; null otherwise. For a music-driven film, cut on these beats (transition midpoints on beats, risers resolving on downbeats). | |
| envelope | No | Envelope evidence (audio-substrate P0). `envelopeClass` is always present when an envelope exists (the SFX pack carries it); the numeric probe stats are present only when an audio probe has run. Null when no envelope is stored. | |
| wordGrid | No | The VO-role rhythm grid for this bounded transcript page. Present when a transcript exists; null otherwise. Check pagination.hasMore before treating it as a complete voice spine. | |
| audioRole | No | DECLARED audio role of this asset (audio-substrate P0): 'vo' (narration), 'music' (bed that ducks under speech), 'sfx' (one-shot hit), 'ambience' (a bed that HOLDS under VO — never ducks). Author the clip source's `audioRole` from this. Null for footage/images or an undeclared audio asset. | |
| thumbnail | No | Presigned processing thumbnail (~1 week) — the footage at a glance. For stills at chosen timestamps, use preview_frame with a one-clip composition over this media. | |
| transcript | No | ||
| durationSec | No |