add_layer
Adds a feature class, shapefile, raster, table, .lyrx layer, or web service to an ArcGIS Pro map via path or URL. Optionally specify map, position, or group layer.
Instructions
Add data to a map from a path or service URL: feature class, shapefile, raster, table, .lyrx layer file or web service.
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": {
"path": "<path>"
},
"name": "add_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Dataset path or service URL. | |
| map_name | No | Map to act on; defaults to the active map. | |
| position | No | AUTO_ARRANGE, TOP or BOTTOM. | AUTO_ARRANGE |
| group_layer | No | Optional group layer to add it into. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |