switch_tab
Activate a specific browser tab in a DICloak environment by tab ID, title, or URL so automation continues in the correct page context.
Instructions
Switch to a tab in the browser environment by tab ID, title, or URL
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": {
"envId": "<envId>"
},
"name": "switch_tab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Switch to tab with matching URL (partial match). Either tabId, title, or url must be provided. | |
| envId | Yes | Environment ID for the browser environment to operate. | |
| tabId | No | Tab ID (1-based index) to switch to. Either tabId, title, or url must be provided. | |
| title | No | Switch to tab with matching title (partial match). Either tabId, title, or url must be provided. |