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
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | Yes | ||
| visible | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |