Layer Selection Count
arcgis_pro_layer_selection_countReturns the exact selected feature count for a layer in an ArcGIS Pro map, reading getSelectionSet without falling back to total row count.
Instructions
读取图层 getSelectionSet 返回的准确选中要素数量,不回退为总行数。
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": {
"aprx_path": "<aprx_path>",
"map_name": "<map_name>",
"layer_name": "<layer_name>"
},
"name": "arcgis_pro_layer_selection_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map_name | Yes | ||
| aprx_path | Yes | ||
| layer_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||