list_layers_in_map
Lists layers in an ArcGIS Pro map, showing visibility, group status, and data source. Use before visibility, ordering, or zoom operations to get exact layer names from the project file.
Instructions
List layers in a selected map with visibility, group-layer status, and data source information where available. Use this to discover exact Contents-pane layer names before visibility, ordering, symbology, rename, or zoom operations. Reads the saved .aprx project only and does not modify layer state.
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": {
"params": "<params>"
},
"name": "list_layers_in_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||