autochrome-bridge
v1.5.0MCP server and local HTTP/WebSocket bridge that lets AI tools control Chrome through the autochrome extension.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
tabs_list
List open tabs, one per line as "tabId · title · url". Marks the current tab and the tabs in the agent group. Use it first to see what is open.
| Parameter | Type | Description |
|---|---|---|
agentOnly | boolean | Only list the tabs in the agent group. |
tab_open
Open a new tab in the agent tab group and make it the current tab, unless background is true. Returns its tabId. Pass that tabId to later calls when working with more than one tab.
| Parameter | Type | Description |
|---|---|---|
background | boolean | Open without switching to the tab or changing the current tab. |
url | string | URL to load. Blank tab if omitted. |
tab_switch
Make an existing tab the current tab, bring it to the front and add it to the agent tab group.
| Parameter | Type | Description |
|---|---|---|
tabId * | integer |
tab_close
Close a tab.
| Parameter | Type | Description |
|---|---|---|
tabId * | integer |
go_back
Go back one step in the tab history and wait for the page to load.
| Parameter | Type | Description |
|---|---|---|
tabId | integer | Target tab. Defaults to the current tab. |
go_forward
Go forward one step in the tab history and wait for the page to load.
| Parameter | Type | Description |
|---|---|---|
tabId | integer | Target tab. Defaults to the current tab. |
read_page
Read the page as a compact accessibility tree. Each actionable element gets a ref like "e12" that click, type, scroll and form_input accept. Refs are reset by every read_page call. Use filter "interactive" (default) for a flat list of actionable elements, or "all" for the full structure.
| Parameter | Type | Description |
|---|---|---|
filter | string | |
tabId | integer | Target tab. Defaults to the current tab. |
find
Find elements whose role, name or value contains the query (case-insensitive). Returns up to 20 lines in the read_page format, with refs. Use it to locate an element on a large page without reading everything.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
tabId | integer | Target tab. Defaults to the current tab. |
get_text
Get the page title, URL and readable text (up to 20,000 characters). Use it to read articles or other long text.
| Parameter | Type | Description |
|---|---|---|
tabId | integer | Target tab. Defaults to the current tab. |
extract_table
Read the data tables on the page (HTML tables and grids) as markdown tables, row by row. More reliable than get_text for tabular data such as prices, schedules or results.
| Parameter | Type | Description |
|---|---|---|
maxRows | integer | Rows per table at most. |
tabId | integer | Target tab. Defaults to the current tab. |
screenshot
Take a JPEG screenshot of the visible viewport. Its pixel size equals the viewport size in CSS px, so x/y read from it can be passed to click. Use it when the accessibility tree is not enough.
| Parameter | Type | Description |
|---|---|---|
tabId | integer | Target tab. Defaults to the current tab. |
click
Click an element by ref, or a viewport point by x and y. Prefer ref.
| Parameter | Type | Description |
|---|---|---|
button | string | |
clickCount | integer | 2 for double click. |
ref | string | Element ref such as "e12", from read_page or find. |
tabId | integer | Target tab. Defaults to the current tab. |
x | number | Viewport x in CSS px (as in a screenshot). |
y | number | Viewport y in CSS px (as in a screenshot). |
hover
Move the mouse over an element by ref, or over a viewport point by x and y, without clicking. Use it to open menus and tooltips that appear on hover.
| Parameter | Type | Description |
|---|---|---|
ref | string | Element ref such as "e12", from read_page or find. |
tabId | integer | Target tab. Defaults to the current tab. |
x | number | Viewport x in CSS px (as in a screenshot). |
y | number | Viewport y in CSS px (as in a screenshot). |
drag
Drag from one element or point to another and drop it there, e.g. to reorder a list, move a slider or drop a card on a board. Give the start as fromRef or fromX/fromY and the end as toRef or toX/toY.
| Parameter | Type | Description |
|---|---|---|
fromRef | string | Element ref such as "e12", from read_page or find. |
fromX | number | |
fromY | number | |
tabId | integer | Target tab. Defaults to the current tab. |
toRef | string | Element ref such as "e12", from read_page or find. |
toX | number | |
toY | number |
type
Type text into the focused element, or into the element given by ref (focused first). Does not press Enter; use key for that.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
ref | string | Element ref such as "e12", from read_page or find. |
tabId | integer | Target tab. Defaults to the current tab. |
key
Press a key or key combination, e.g. "Enter", "Escape", "Control+a", "Shift+Tab". Separate several presses with spaces, e.g. "Tab Tab Enter".
| Parameter | Type | Description |
|---|---|---|
keys * | string | |
tabId | integer | Target tab. Defaults to the current tab. |
scroll
Scroll the page, or the element under the given ref or x/y point. Defaults to the viewport center.
| Parameter | Type | Description |
|---|---|---|
direction * | string | |
amount | number | Distance in px. |
ref | string | Element ref such as "e12", from read_page or find. |
tabId | integer | Target tab. Defaults to the current tab. |
x | number | Viewport x in CSS px (as in a screenshot). |
y | number | Viewport y in CSS px (as in a screenshot). |
form_input
Set the value of an input, textarea, select, checkbox or radio by ref and fire input and change events. Use a boolean for checkboxes and radios, and an option value or label for selects.
| Parameter | Type | Description |
|---|---|---|
ref * | string | Element ref such as "e12", from read_page or find. |
value * | string | boolean | |
tabId | integer | Target tab. Defaults to the current tab. |
upload_file
Put files into a file input or a drop zone, given by ref (or x and y for a drop zone without a ref). Files come from what the user attached to the chat (attachmentIds, listed in their message), from a URL, or from text you write (fileName + text). The user is asked to approve every upload.
| Parameter | Type | Description |
|---|---|---|
attachmentIds | array | Ids of files the user attached. |
fileName | string | Name for a file made from text, e.g. "notes.txt". |
ref | string | Element ref such as "e12", from read_page or find. |
tabId | integer | Target tab. Defaults to the current tab. |
text | string | Contents of a file made from text. |
url | string | Download this file and upload it. |
x | number | Viewport x in CSS px (as in a screenshot). |
y | number | Viewport y in CSS px (as in a screenshot). |
dialog
Answer the alert, confirm, prompt or "leave this page?" dialog that is open on a tab. accept: true clicks OK (or Leave), false clicks Cancel. For a prompt, promptText is what to type.
| Parameter | Type | Description |
|---|---|---|
accept * | boolean | |
promptText | string | |
tabId | integer | Target tab. Defaults to the current tab. |
wait
Wait for a fixed time, for text to appear in the page, or both. Use after actions that load content asynchronously.
| Parameter | Type | Description |
|---|---|---|
ms | number | |
tabId | integer | Target tab. Defaults to the current tab. |
text | string | Resolve as soon as this text is in the page (case-insensitive). |
timeoutMs | number |
console_logs
Read the browser console of a tab: console.* calls, uncaught exceptions and browser warnings, newest last. Use it to debug a page the user is developing or to see what went wrong. Capture starts when autochrome first attaches to the tab, so earlier messages are missing; navigate to the same URL to capture from page start.
| Parameter | Type | Description |
|---|---|---|
clear | boolean | Empty the buffer after reading. |
level | string | Only this level. |
limit | integer | Newest N lines to return. |
pattern | string | Only messages containing this text (case-insensitive). |
tabId | integer | Target tab. Defaults to the current tab. |
network_requests
List the network requests a tab made, one per line as "[requestId] METHOD status url (type, size, ms)". Use it to check which requests failed or returned errors; pass a requestId to network_response to see the body. Capture starts when autochrome first attaches to the tab; navigate to the same URL to capture from page start.
| Parameter | Type | Description |
|---|---|---|
clear | boolean | Empty the buffer after reading. |
limit | integer | Newest N requests to return. |
method | string | Only this HTTP method, e.g. "POST". |
status | "failed" (no response), "4xx", "5xx" or an exact status code. | |
tabId | integer | Target tab. Defaults to the current tab. |
urlPattern | string | Only URLs containing this text. |
network_response
Get the response headers and body of a request listed by network_requests. Text bodies only, truncated at 20,000 characters.
| Parameter | Type | Description |
|---|---|---|
requestId * | string | |
tabId | integer | Target tab. Defaults to the current tab. |
workflows_list
List the saved workflows (recorded in the browser or saved from a chat) with their ids, names and variables. Use it to find a workflow before running it with workflow_run.
workflow_run
Replay a saved workflow by id or name in its own tab and return the run log: each step with its status (ok, repaired by AI, or failed) and duration. Fill the workflow variables with `variables`. A step that cannot find its element is handed to the configured AI provider to repair.
| Parameter | Type | Description |
|---|---|---|
id | string | Workflow id from workflows_list. |
name | string | Workflow name, when the id is not known. |
variables | object | Values for the workflow variables, by name. |
js_eval
Run JavaScript in the page and return the JSON result (or the exception). For debugging and inspecting page state, not for ordinary browsing. The user is always asked to approve the code first.
| Parameter | Type | Description |
|---|---|---|
code * | string | |
tabId | integer | Target tab. Defaults to the current tab. |