set_layer_visibility
Toggle map layer visibility in ArcGIS Pro. Show or hide one layer, multiple layers, or all layers to control what appears on the map.
Instructions
Show or hide one layer, several layers, or every layer in the map.
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": {
"visible": "<visible>"
},
"name": "set_layer_visibility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| visible | Yes | True to show, False to hide. | |
| map_name | No | Map to act on; defaults to the active map. | |
| layer_name | No | Single layer to change. | |
| layer_names | No | Several layers to change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |