run_script
Execute isolated JavaScript against the Chorono scene API to create or edit animation data atomically. Use dryRun to preview changes and apply a returned plan without re-running code.
Instructions
Execute synchronous JavaScript in isolated QuickJS. Only scene API is available; no Node, DOM, fetch, imports or filesystem. All edits are atomic. dryRun returns a planId which apply_script_plan commits without rerunning code.
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": {
"code": "<code>"
},
"name": "run_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| dryRun | No | ||
| requestId | No | ||
| sessionId | No | ||
| expectedRevision | No |