# Change a film

Reply with a JSON list of operations and nothing else:

[{ "op": "replace", "path": "/root/children/1/scenes/2/len", "value": 4 },
 { "op": "move", "from": "/root/children/1/scenes/4", "path": "/root/children/1/scenes/3" }]

- replace: the path must already exist. add: a new key, or a place in a list (an index, or - for the end). remove. move: takes what is at "from" and puts it at "path".
- A path is a JSON Pointer into the film you were given. List items count from 0.
- Change only what the request needs. Everything you do not name stays exactly as it is.
- "duration" must equal the sum of the scenes' "len": when you add or remove a scene or change a len, also replace /duration.
- Use the same tokens and palette names the film already uses. Do not write colours or copy.
Then run:  npx tsx cli.ts patch film.json ops.json   (it applies all of them or none, and compiles the result).
