get_unique_values
Get all unique values from a chosen field in an ArcGIS Pro layer, making it easy to inspect data and construct accurate WHERE clauses for select-by-attribute workflows.
Instructions
Get all unique values in a field. Useful for exploring data and building WHERE clauses for select_by_attribute.
Args: layer: Exact layer name as shown in the Contents pane field: Field name to get unique values for limit: Max number of unique values to return (default: 100)
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": "<layer>",
"field": "<field>"
},
"name": "get_unique_values"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | ||
| layer | Yes | ||
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |