Studio: send an image or clip
studio_enviar_midiaAdds one of the user’s own files to a project, to use in scripts as "midia/". Images: JPEG, PNG, WebP or GIF up to 15 MB (best at the video’s size: 1920×1080 for 16:9, 1080×1920 for 9:16). Clips and the user’s own recordings (presenter "video"): MP4 or WebM up to 80 MB (720p is plenty; phone video works). With url (a public https link straight to the file) it is fetched now. Without it, returns a single-use upload link valid ~15 min in two forms: a page on avatar.diatech.solutions where the user drags the file in the browser (show that page to users of ChatGPT, claude.ai or any chat without a shell), and a PUT URL for agents with a shell (curl -X PUT -H 'Content-Type: video/mp4' --data-binary @file '', with the file's own type). Same name again replaces the file. Only send what the user owns or may use. Free.
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": {
"projeto": "<projeto>",
"nome": "<nome>"
},
"name": "studio_enviar_midia"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| de | No | Reuse a file the user already sent to another of their projects (copied, nothing to upload): { projeto, nome } from studio_listar_midias with todas: true. | |
| url | No | Public https link straight to the file (optional; without it you get an upload URL). | |
| nome | Yes | File name with extension, kebab-case (e.g. 'versiculo-01.jpg', 'esboco.mp4'). | |
| projeto | Yes | Project slug, from studio_listar_projetos. | |
| language | No | Always pass it: the language the user is writing in right now, as a BCP-47 tag (e.g. 'en', 'en-US', 'pt-BR', 'es'), not the app's interface language. Replies, prices and the card follow it. |