list_fields
Get field names, types, lengths, and aliases for any ArcGIS dataset to prepare accurate WHERE clauses and attribute operations.
Instructions
List all fields in a dataset (shapefile, feature class, table, layer name, etc.) with field type, length, and alias. Use this before building WHERE clauses or running attribute operations.
Args: dataset: Full path to dataset, or layer name as shown in Contents pane
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": {
"dataset": "<dataset>"
},
"name": "list_fields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |