cavalry_run_script
Execute JavaScript automation scripts in Cavalry using the api.* module to create procedural animations, build node networks, and perform batch updates.
Instructions
Executes a multiline JavaScript automation script inside Cavalry using the api.* module. Use this for complex procedural generation, node network creation, and batch updates.
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": "cavalry_run_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | JavaScript code using Cavalry API methods (e.g. `api.create()`, `api.set()`, `api.connect()`, `api.setKeyframe()`). |