Stage Batch
stage_batchRun multiple stage operations in one ordered call on a single scene, with optional stop-on-error rollback for changed scene JSON files. Batch sequential stage actions and get one reply line per op.
Instructions
Many stage ops in one call, in order, on one scene (scene is implied): ops = [{"op": "stage_follow_anchor", "person": ..., "joint": "hips", "to": "stool_3"}, {"op": "stage_perform", "action": "mark", "label": "legs"}, ...]. Ops that are page commands go to the page together as one command and run back to back there (the ones that answer at once land in the same frame); an op that runs here (stage_world, stage_events, stage_performance, ...) first sends the page commands before it, so the order holds. With stop_on_error (default) the first failure stops the batch: the scene folder's top-level .json files that the ops here changed (world.json and the like) go back to what they were; takes, performances and voice files are not put back, and what the page already did stays (the page cannot roll back; the reply says what ran). Not in a batch: stage_batch, stage_start, stage_stop, stage_restart, stage_listen, stage_busy, stage_scene_export, stage_scene_new, stage_scene_go. Replies one line per op: [i] op: its answer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | ||
| scene | Yes | ||
| stop_on_error | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |