setLayerVisibility
Controls whether a specified layer is shown or hidden on the globe. Provide the layer ID and a visibility flag, then receive success or error details to manage your scene's layer states.
Instructions
Show or hide a managed layer. Returns { success: boolean, data?: unknown, message?: string, error?: string }.
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": {
"id": "<id>",
"visible": "<visible>"
},
"name": "setLayerVisibility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Layer ID | |
| visible | Yes | Whether visible | |
| sessionId | No | Target browser session ID for multi-browser routing (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | ||
| message | No | ||
| success | Yes |