read_tab
Read the current state of an open browser tab to get interactive element references, page links, or heading outline for web automation.
Instructions
Read the CURRENT state of an open tab (one you opened with open_tab).
Always read_tab right before an action, because the element refs you need (the [eN] markers) come from the latest snapshot and are renumbered after every action and navigation. A ref from an earlier read is stale.
Args: tab_id: The handle returned by open_tab. mode: What to return: "snippet" - the head of the page snapshot, including the [eN] refs on interactive elements (the default; use this to find the ref you want to click or type into). "urls" - the page's links as {text, url} pairs. "structure" - the page's heading outline.
Returns: The requested view of the current tab.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | Yes | ||
| mode | No | snippet |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |