Studio: write the script
studio_escrever_roteiroSaves an episode’s Ania Script: { titulo, cenas: [{ id, layout, conteudo, falas: [{ id, texto }] }] } (project fields such as apresentadores or marca may be overridden). It is validated with the renderer’s own schema first: on errors NOTHING is saved and the problems come back (in Portuguese) for you to fix and call again; warnings are returned after saving. Layout ids come from studio_listar_layouts. Write calm speech (short sentences), one idea per scene. 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>",
"episodio": "<episodio>",
"roteiro": "<roteiro>"
},
"name": "studio_escrever_roteiro"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projeto | Yes | Project slug, from studio_listar_projetos. | |
| revisao | No | Revision you read (studio_ver_episodio); refused if it changed since. | |
| roteiro | Yes | The episode script (Ania Script v1 without schema/projeto). | |
| episodio | Yes | Episode number ('01'), ref ('01-visao-geral') or slug. | |
| language | No | The user's language as a BCP-47 tag (e.g. 'en', 'en-US', 'pt-BR', 'es'). Replies and prices follow it. |