add_media
Import user-supplied images, audio, or video into an animation project, storing images/audio in assets and converting videos into frames plus audio for page and sound use.
Instructions
Bring the user's own file into a project. Images and audio go to assets/. A video becomes frames in footage// plus audio.wav; draw it with shared/footage.js and add its sound through sound.json tracks.
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": {
"project": "<project>",
"file": "<file>"
},
"name": "add_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path to the file | |
| name | No | Short name to use in the page | |
| project | Yes |