set_layer_visibility
Toggle a layer's visibility in ArcGIS Pro's Contents pane by specifying its exact name and a true/false value to show or hide it.
Instructions
Toggle a layer's visibility in the Contents pane.
Args: layer: Exact layer name as shown in the Contents pane visible: True to show, False to hide
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": "<layer>",
"visible": "<visible>"
},
"name": "set_layer_visibility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | Yes | ||
| visible | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |