media
mediaList available image, video, and speech models; inspect files, extract frames, OCR, and transcribe; then compose MP4s or generate image, video, and speech assets.
Instructions
List image/video/speech models and local composition capabilities. For image-based videos use generateImage then composeVideo with the renderer and features reported by listModels. Composition returns an MP4 without a video generation model. generateVideo requires a configured generative video model. Generate speech only when listModels includes a speech model. Also inspect media, extract frames, OCR and transcription; unavailable providers return an explicit error.
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": {
"action": "<action>",
"reason": "<reason>"
},
"name": "media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| count | No | ||
| voice | No | ||
| action | Yes | ||
| prompt | No | ||
| reason | Yes | ||
| scenes | No | ||
| maskRef | No | ||
| audioRef | No | ||
| duration | No | ||
| language | No | ||
| modelRef | No | ||
| maxFrames | No | ||
| sourceRef | No | ||
| endSeconds | No | extractFrames only: exclusive end of the source-video range, in seconds. Defaults to source duration. | |
| sourceRefs | No | ||
| timestamps | No | ||
| aspectRatio | No | ||
| audioOffset | No | ||
| audioVolume | No | ||
| outputFormat | No | ||
| startSeconds | No | extractFrames only: start of the source-video range, in seconds. Defaults to 0. | |
| audioDuration | No | ||
| audioTrimStart | No | ||
| intervalSeconds | No |