batch
Run multiple Roblox Studio operations in one round-trip and one undo entry, mixing different actions and returning per-operation results; halt on first failure when needed.
Instructions
Run MANY operations in ONE round-trip and ONE undo entry. The single biggest speed win for multi-step builds (a 40-instance UI = 1 call, not 40). Each op is { op, args } where args is exactly what that tool takes (omit place). Returns a per-op result list. Set stopOnError to halt at the first failure.
Supported ops: create_instance, delete_instance, clone_instance, move_instance, rename_instance, mass_create, mass_duplicate, create_tree, set_property, mass_set_property, mass_edit, set_attribute, mass_set_attribute, add_tag, remove_tag, set_script_source, edit_script_lines, find_and_replace_in_scripts, set_selection, get_properties, get_children, get_script_source. (create_tree / mass_* already batch one kind; use batch to mix different ops.)
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": {
"ops": "<ops>"
},
"name": "batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | ordered list of operations | |
| place | No | Target place (PlaceId or project name). Defaults to the bound/sole connected place. | |
| stopOnError | No | halt at first failure (default false) |