remove_layer
Removes a named layer from the active map; specify the exact layer name as shown in the Contents pane to clean up your ArcGIS Pro session.
Instructions
Remove a layer from the active map by name.
Args: name: Exact layer name as shown in the Contents pane
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": {
"name": "<name>"
},
"name": "remove_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |