| 1 | # MCP reference |
| 2 | |
| 3 | ## Tool mapping |
| 4 | |
| 5 | Use the MediaKit tools exposed by this environment. Do not install or run `mediakit-cli`. |
| 6 | |
| 7 | | Capability | Tool and arguments | |
| 8 | | --- | --- | |
| 9 | | Frame extraction | `extract_frames` with `video_url` and sampling fields | |
| 10 | | Image / audio / video understanding | `media_understanding` with `media_url` and `prompt` | |
| 11 | | Speech evidence / subtitles | `asr_subtitles` | |
| 12 | | Full transcript | Follow `../../byted-mediakit-asr/SKILL.md` | |
| 13 | | Task status | The environment resolves submitted task IDs automatically | |
| 14 | |
| 15 | If a capability is unavailable, report the gap. Do not substitute a prohibited high-level analysis workflow. |
| 16 | |
| 17 | ## Understanding |
| 18 | |
| 19 | Submit one image, audio, or video asset per call. Submit video only when the user explicitly requests direct video understanding: |
| 20 | |
| 21 | ```json |
| 22 | { |
| 23 | "media_url": "<reference accepted by the MCP schema>", |
| 24 | "prompt": "<question and source evidence context>" |
| 25 | } |
| 26 | ``` |
| 27 | |
| 28 | For image and audio inputs, omit `manual_option` and `scene`. For a contact sheet, provide the verified tile order, source timestamps, coverage gaps and question. Ask for visible findings tied to frames, with interpretations distinguished from observations. For audio, specify the relevant music, sound effects or ambience, source interval, and approximate time ranges; do not ask it to infer visual causes. Use `asr_subtitles` separately for exact speech. |
| 29 | |
| 30 | Direct video input requires an explicit user request for direct video understanding; do not add it alongside extraction and ASR for speed, story context or highlight search. Tool support for video and `scene=editing` do not authorize this path or guarantee precise timestamps. For explicitly requested video sound analysis, use `manual_option.need_audio=true` when supported; omit `scene` for sound analysis. |
| 31 | |
| 32 | ## Extraction |
| 33 | |
| 34 | Use typed JSON values. Example arguments: |
| 35 | |
| 36 | ```json |
| 37 | { |
| 38 | "video_url": "<service-accessible video reference>", |
| 39 | "snapshot_type": "TimeInterval", |
| 40 | "time_interval": 3, |
| 41 | "enable_sprite": true, |
| 42 | "sprite_rows": 4, |
| 43 | "sprite_cols": 4, |
| 44 | "snapshot_limit": 3, |
| 45 | "scale_long": 384 |
| 46 | } |
| 47 | ``` |
| 48 | |
| 49 | Choose values for the actual source; this example permits up to 48 tiles and does not guarantee complete coverage. Apply the shared sampling reference, including readable tiles and reliable time mapping. For refinement, use `snapshot_type=SpecifiedTime`, a numeric `specified_time` array and `enable_sprite=false` when supported. Send returned images to image understanding rather than resubmitting the original video. |
| 50 | |
| 51 | ## Inputs and task lifecycle |
| 52 | |
| 53 | Use media references accepted by the MCP schema and runtime resolver. Do not send Base64, data URLs, local paths, or platform IDs as model parameters. If no suitable accessible reference is available, report the missing input capability. |
| 54 | |
| 55 | Retain the actual task ID from submission and query the same task until terminal. If submission has no usable task ID, inspect the actual response and report the submission problem without inventing an ID or blindly retrying. A timeout or empty content is not a reason to submit the operation again. Keep source/modality associations, retain usable partial evidence, and report missing analysis. Only summarize content actually returned or inspected. |
| 56 |