write_file
Save spec.js, scene.js, or crew notes (.md/.json) with syntax/spec validation before saving; previous versions are kept in .history.
Instructions
Write spec.js (script, voice, music, sound cues), scene.js (the three.js scene) or a crew note (.md/.json). JS is syntax-checked and the spec validated before saving; the old version is kept in .history.
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": {
"slug": "<slug>",
"file": "<file>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | spec.js, scene.js, or e.g. treatment.md, cast.json, shots.json, grade.json | |
| slug | Yes | episode slug, e.g. the-cursed-tape (or an example slug for read-only tools) | |
| content | Yes |