Generate media
creator_generate_mediaGenerate an image (PNG), an SVG (kind vector), music or speech into the document's media library as media/. It does not change the scene: the result shows the exact creator_exec code that uses the file. image: prompt describes the picture; transparent:true for a subject placed over the scene. vector: prompt draws a flat icon and traces it to SVG, or inputs:["media/.png"] traces an image. music: prompt is mood, genre and instruments; text is lyrics; durationS 5–180. speech: text is the exact words, style the delivery, voice a provider voice. Each call is billed. A result not ready within the server's wait comes back as {status:"generating"}: call creator_download_file(file), which waits for it, until it is ready; do not generate it again. A taken name fails unless replace:true.
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": {
"kind": "<kind>"
},
"name": "creator_generate_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | image | vector (SVG) | music | speech. | |
| name | No | File name without path, e.g. "intro"; the extension follows the kind. Default: from the words. | |
| text | No | speech: the exact words to speak (required). music: lyrics; omit for an instrumental. | |
| maxPx | No | image: longest edge in pixels, 64–2048 (default 1024); a placed image costs width×height×4 bytes. | |
| style | No | Style guidance; speech: the delivery (tone, pace, accent). | |
| voice | No | speech: a provider voice (openai: marin, cedar, coral, sage, …; minimax: English_Graceful_Lady, …). | |
| inputs | No | image: media PNGs to edit or match; vector: the one image to trace. | |
| prompt | No | image, vector, music: what to make. Speech does not use it. | |
| replace | No | Regenerate an existing name; the earlier file stays readable until the new one is ready. | |
| provider | No | Omit unless the user names a provider. | |
| durationS | No | music: length in seconds, 5–180 (default 30). | |
| documentId | No | Document the media belongs to (default "default"). | |
| aspectRatio | No | image: the frame shape. | |
| transparent | No | image: true for a subject over the scene; false for a full-frame background. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||