set_selection
Select specific features by ObjectID in ArcGIS Pro to highlight or isolate them for further analysis, editing, or export.
Instructions
Select specific features by ObjectID.
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_name": "<layer_name>",
"oids": "<oids>"
},
"name": "set_selection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| oids | Yes | ObjectIDs to select. | |
| method | No | NEW, DIFFERENCE, INTERSECT, SYMDIFFERENCE, UNION. | NEW |
| map_name | No | Map to act on; defaults to the active map. | |
| layer_name | Yes | Layer or table name as shown by get_layers, or a full dataset path. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |