attach_tab
Attach to a browser tab by URL or targetId to get a snapshot of visible headings and controls with refs, and buffer console and network events for debugging.
Instructions
Start here: attach to a tab by its url, or a targetId from list_tabs or new_tab. Returns the page's snapshot, one line per visible heading and control with a ref such as e12 (f1e3 inside an iframe), and buffers the tab's console and network events from now on. Later calls without sessionId act on the tab attached last.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "attach_tab"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Instead of targetId: the tab whose URL is this, else the one whose URL contains it. | |
| targetId | No | From list_tabs or new_tab. |