browser_tabs
Manage browser tabs by listing, opening, switching, or closing them. Use target IDs to reliably act on specific tabs, avoiding positional index confusion when tab order changes.
Instructions
List, open, switch to, or close tabs.
Tabs opened by the page show up in observations on their own. To act on one,
prefer target_id (the #handle printed by action="list"): indexes are
positional and get renumbered whenever the tab list changes, so an index
read a call ago can address a different tab. index is a convenience when
listing and acting in the same breath; omit both to mean "the current tab".
url is checked against the domain envelope, like every other way of
choosing a destination.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | about:blank | |
| index | No | ||
| action | No | list | |
| session | No | default | |
| target_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |