switch_tab
Open, switch, or close browser tabs by ID. After switching, previous references become invalid—call view_page before acting on the new tab.
Instructions
Open a new tab, switch to a tab by ID (from virtual_desk), or close one. Prefer 'open' over navigate when the user's active tab must stay untouched. Refs from the previous tab are invalid afterwards — call view_page before acting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | Tab ID or 1-based number (switch/close; close: active tab) | |
| url | No | URL for a new tab (open); default about:blank | |
| action | No | open | switch | close | switch |