browser_tabs
Manage browser tabs by listing, opening, switching, and closing them. Use stable target IDs instead of positional indexes to avoid acting on the wrong tab when 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".
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 |