Tabhand
v0.10.1Let your coding agents use your real, signed-in Chrome, in background tabs that never steal focus.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
browser_open_tab
Open a new tab in the user's own Chrome, with their logins, and optionally load a URL. The tab opens in the background inside this session's tab group: Chrome is not brought to the front and the user's tabs are untouched, so they can keep working. Returns the tabId the other browser tools need.
| Parameter | Type | Description |
|---|---|---|
profile | string | Chrome profile to open the tab in, by its name or id from browser_list_profiles. Only needed when the user has Tabhand in several profiles. Your later tabs open there too. |
url | string | Page to load, e.g. https://example.com. Omit for a blank tab. |
browser_list_profiles
List the Chrome profiles that have Tabhand (for example work and personal, each signed in to different accounts): each one's name, whether Tabhand is on or paused there, and which one your new tabs open in.
browser_snapshot
Read the page as an accessibility outline (headings, text, links, buttons, fields). Elements you can act on carry a ref like e123 for browser_click and browser_type; plain elements the page made clickable show as "clickable". Refs stop working after the page changes, so take a new snapshot then.
| Parameter | Type | Description |
|---|---|---|
tabId * | integer | Tab id from browser_open_tab or browser_list_tabs. |
browser_click
Click an element by its ref from browser_snapshot, or else by the text it shows. Waits for any page load the click starts. Links and popups that open a new tab stay in the background, join this session, and are listed in the result. Clicking an option of a dropdown chooses it.
| Parameter | Type | Description |
|---|---|---|
tabId * | integer | Tab id from browser_open_tab or browser_list_tabs. |
ref | string | Element ref from browser_snapshot, e.g. e123. |
text | string | Instead of a ref: the visible text of the element to click, for something the snapshot gives no ref but you can see in a screenshot. |
browser_type
Type text into a field. Pass the field's ref to focus it first; omit ref to type into whatever already has focus. Set clear to replace the existing text and submit to press Enter afterwards. Given a dropdown's ref, chooses the option with that text.
| Parameter | Type | Description |
|---|---|---|
tabId * | integer | Tab id from browser_open_tab or browser_list_tabs. |
text * | string | Text to type. |
clear | boolean | Replace the field's current text. |
ref | string | Field ref from browser_snapshot, e.g. e123. |
submit | boolean | Press Enter after typing. |
browser_press_key
Press a key in the page: Enter, Tab, Escape, Backspace, Delete, ArrowUp/Down/Left/Right, Home, End, PageUp, PageDown, Space, a single character, or a combination such as Shift+Tab.
| Parameter | Type | Description |
|---|---|---|
key * | string | Key or combination, e.g. Enter or Shift+Tab. |
tabId * | integer | Tab id from browser_open_tab or browser_list_tabs. |
browser_handle_dialog
Answer a confirm or prompt dialog the page opened: accept it (OK) or dismiss it (Cancel). The page waits until it is answered. Alerts are closed for you. Ask the user first if accepting would send, buy, delete or change something.
| Parameter | Type | Description |
|---|---|---|
accept * | boolean | true for OK, false for Cancel. |
tabId * | integer | Tab id from browser_open_tab or browser_list_tabs. |
text | string | What to enter, for a prompt dialog. |
browser_scroll
Scroll the page up or down, e.g. to load more content or bring something into view for a screenshot.
| Parameter | Type | Description |
|---|---|---|
tabId * | integer | Tab id from browser_open_tab or browser_list_tabs. |
amount | number | Pixels to scroll. Defaults to 600. |
direction | string | Defaults to down. |
browser_screenshot
Take a screenshot of one of this session's tabs, even though it is in the background. Prefer browser_snapshot for reading text; use screenshots to check layout and visuals.
| Parameter | Type | Description |
|---|---|---|
tabId * | integer | Tab id from browser_open_tab or browser_list_tabs. |
fullPage | boolean | Capture the whole page instead of the visible area (capped at 8000 px tall). |
browser_list_tabs
List the tabs this session has open. Other sessions' tabs and the user's own tabs are never shown.
browser_upload_file
Attach files from this computer to the page, as if the user picked them. Pass the ref of a file field, or of the button that opens a file picker (no system dialog appears).
| Parameter | Type | Description |
|---|---|---|
paths * | array | Files to attach: absolute paths, or relative to the directory you run in. |
ref * | string | Ref of the file field, or of the button that opens the file picker. |
tabId * | integer | Tab id from browser_open_tab or browser_list_tabs. |
browser_close_tab
Close one of this session's tabs when you are done with it.
| Parameter | Type | Description |
|---|---|---|
tabId * | integer | Tab id from browser_open_tab or browser_list_tabs. |