Set Layer Labeling
set_layer_labelingConfigure labeling for vector layers: enable or disable labels, set the label attribute field, adjust font size and color (hex).
Instructions
Configure labeling for a vector layer. Set enabled=false to disable labels. Set field_name to the attribute field to label with. Optional: font_size (float), color (hex like '#000000').
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_id": "<layer_id>"
},
"name": "set_layer_labeling"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | ||
| enabled | No | ||
| layer_id | Yes | ||
| font_size | No | ||
| field_name | No |