labels_enable
Activate labeling for a vector layer by specifying a field or expression for label text.
Instructions
Turn on labeling for a vector layer, sourced from a field or a QGIS expression.
Pass exactly one of field or expression. Applies simple (non-rule-based)
labeling with default text formatting - use labels_configure afterwards
to adjust font, buffer, placement, or priority.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | No | ||
| layer_id | Yes | ||
| expression | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||