Batch Commands
batch_commandsGroup multiple non-destructive QGIS commands into one batch execution to minimize API calls and improve performance.
Instructions
Execute multiple commands in a single round-trip. Each command is {"type": "<command_name>", "params": {...}}. Destructive commands (execute_code, remove_layer, delete_features, set_setting, reload_plugin) are not allowed in batch — use 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 |