Batch Commands
batch_commandsExecute multiple non-destructive QGIS commands in one round-trip to reduce overhead; call destructive commands individually.
Instructions
Execute multiple commands in a single round-trip. Each command is {"type": "<command_name>", "params": {...}}. Destructive commands (batch, delete_features, execute_code, execute_connection_sql, import_layer_to_connection, reload_plugin, remove_layer, rollback_edits, set_setting) are not allowed in batch, call them individually.
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": {
"commands": "<commands>"
},
"name": "batch_commands"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commands | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |