Set Layer Order
set_layer_orderDefine the draw order of QGIS layers by providing an ordered list of layer IDs from top to bottom; unlisted layers keep their existing slots and any custom draw order is cleared.
Instructions
Reorder layer tree nodes; tree order is draw order. layer_ids is the ordered list of layer ids from top (drawn last) to bottom; unlisted layers keep their slots. Clears any custom draw order (it freezes a snapshot list — layers added later would silently draw behind everything).
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": {
"layer_ids": "<layer_ids>"
},
"name": "set_layer_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer_ids | Yes |