get_selection
Report current selections per layer in ArcGIS Pro, including ObjectIDs and optional attribute rows, to inspect active map selections.
Instructions
Report what is currently selected, per layer, with ObjectIDs and optionally the attribute rows.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum ObjectIDs/rows per layer. | |
| map_name | No | Map to act on; defaults to the active map. | |
| layer_name | No | Single layer; default every feature layer. | |
| include_attributes | No | Also return the selected rows. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |