Edit a film file
edit_fileReplaces one exact piece of text in a film file (it must occur exactly once) and compiles the film.
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": {
"video": "<video>",
"path": "<path>",
"find": "<find>",
"replace": "<replace>"
},
"name": "edit_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | The exact text to replace; must occur once in the file | |
| path | Yes | The film file, e.g. film/Main.tsx | |
| video | Yes | The video's id, from start_video | |
| replace | Yes | What to put in its place |