Tabhand

v0.10.1
dev.tabhand/tabhand Checked 14 hours ago Published 1 month ago

Let 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.

ParameterTypeDescription
profilestringChrome 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.
urlstringPage 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_navigate

Load a URL in one of this session's tabs and wait for it to finish loading.

ParameterTypeDescription
tabId *integerTab id from browser_open_tab or browser_list_tabs.
url *stringPage to load.

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.

ParameterTypeDescription
tabId *integerTab 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.

ParameterTypeDescription
tabId *integerTab id from browser_open_tab or browser_list_tabs.
refstringElement ref from browser_snapshot, e.g. e123.
textstringInstead 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.

ParameterTypeDescription
tabId *integerTab id from browser_open_tab or browser_list_tabs.
text *stringText to type.
clearbooleanReplace the field's current text.
refstringField ref from browser_snapshot, e.g. e123.
submitbooleanPress 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.

ParameterTypeDescription
key *stringKey or combination, e.g. Enter or Shift+Tab.
tabId *integerTab 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.

ParameterTypeDescription
accept *booleantrue for OK, false for Cancel.
tabId *integerTab id from browser_open_tab or browser_list_tabs.
textstringWhat 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.

ParameterTypeDescription
tabId *integerTab id from browser_open_tab or browser_list_tabs.
amountnumberPixels to scroll. Defaults to 600.
directionstringDefaults 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.

ParameterTypeDescription
tabId *integerTab id from browser_open_tab or browser_list_tabs.
fullPagebooleanCapture 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).

ParameterTypeDescription
paths *arrayFiles to attach: absolute paths, or relative to the directory you run in.
ref *stringRef of the file field, or of the button that opens the file picker.
tabId *integerTab 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.

ParameterTypeDescription
tabId *integerTab id from browser_open_tab or browser_list_tabs.