Get Unique Values
get_unique_valuesReturn distinct values from a layer field, with an optional limit, to prepare categorized symbology or filters before styling or querying.
Instructions
Return the distinct values of a field. Use 'limit' to cap results (-1 for all). Useful before building categorized symbology or filters.
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>",
"field": "<field>"
},
"name": "get_unique_values"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | ||
| limit | No | ||
| layer_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||