Evaluate Expression
evaluate_expressionEvaluate a QGIS expression to return a scalar value, such as aggregate, project variable, or date. Supports optional layer context for scoped calculations.
Instructions
Evaluate a standalone QGIS expression to a scalar value (e.g. aggregate('layer','sum','field'), @project_var, now()). Optional layer_id adds layer scope. Distinct from validate_expression (validate only) and field_calculator (per-feature).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer_id | No | ||
| expression | Yes |