batch
Run multiple JSX-routed portal tools in one round-trip and one atomic undo group, with optional stop-on-error and per-operation results.
Instructions
Run many portal tools in ONE round-trip and ONE undo group (atomic: a single Undo reverts the whole batch). stopOnError (default true) halts at the first failing op. Only JSX-routed mutation/read tools are allowed — not render_frame, whisper, import_folder, run_jsx, reload_host, or batch itself. Returns per-op results plus appliedCount/failedAt.
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": {
"operations": "<operations>"
},
"name": "batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance | No | Target a specific AE when more than one is connected (e.g. "2026", "2025", or a major like "26"). Omit when only one AE is open — see list_instances. | |
| operations | Yes | Ordered ops to run in one undo group. Each: { tool: <portal tool name>, args: <that tool's arguments> }. | |
| stopOnError | No | When true (default), the batch stops at the first failing op and reports failedAt + notAttempted; when false, every op is attempted and per-op errors are collected. |