view_media
Open and play video, audio, or image files in an interactive media viewer with native playback controls.
Instructions
Open a media file in the interactive media viewer.
Opens a rich media player UI for viewing videos, listening to audio, or displaying images. The viewer loads the file and renders it with native playback controls.
Parameters:
media_type: Type of media to view — "video", "audio", or "image" (required)
filename: Name of the file to open (required)
video files are in the videos directory
image files are in the images directory
audio files are in the audio directory
Use list_videos, list_reference_images, or list_audio_files to discover available files.
Returns metadata: filename, media_type, size_bytes, mime_type
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": {
"media_type": "<media_type>",
"filename": "<filename>"
},
"name": "view_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| media_type | Yes |