close_tabs
Closes browser tabs in a DICloak environment by tab ID, URL, active tab, or all tabs, enabling automated tab cleanup and browser task management.
Instructions
Close specified tabs in the browser environment
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": "close_tabs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Close tabs matching this URL. Can be used instead of tabIds. | |
| envId | Yes | Environment ID for the browser environment to operate. | |
| tabIds | No | Array of tab IDs to close. If not provided, will close the active tab. | |
| closeAll | No | Whether to close all tabs |