Get Active Layer
get_active_layerIdentify the active layer in QGIS to focus subsequent edits, queries, or maps on the user's current selection.
Instructions
Get the currently active (selected) layer in the QGIS layer panel.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_active_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||