run_pyqgis
Execute PyQGIS code inside a running QGIS session to automate layer management, project operations, map exports, and processing tasks.
Instructions
Execute PyQGIS code inside the running QGIS session. Variables: iface, project, QgsProject, qgis.
Print output is returned; assign to result to return a value. / PyQGIS კოდის შესრულება QGIS-ში.
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": {
"code": "<code>"
},
"name": "run_pyqgis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |