headless_command
Execute PyQGIS commands and layer or project operations without the QGIS GUI; optionally load a .qgz project and save changes back.
Instructions
Run any command (list_layers, layer_info, add_layer, export_map, run_pyqgis, ...) WITHOUT the QGIS GUI.
Pass project to load a .qgz first; save=True writes changes back. / ბრძანება GUI-ს გარეშე.
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": {
"command": "<command>"
},
"name": "headless_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | ||
| params | No | ||
| command | Yes | ||
| project | No |