autochrome-bridge

v1.5.0
autochrome-bridge Checked 3 days ago Published 28 days ago

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

ParameterTypeDescription
agentOnlybooleanOnly 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.

ParameterTypeDescription
backgroundbooleanOpen without switching to the tab or changing the current tab.
urlstringURL 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.

ParameterTypeDescription
tabId *integer

tab_close

Close a tab.

ParameterTypeDescription
tabId *integer

navigate

Load a URL in a tab and wait for it to finish loading. Returns the final URL and page title.

ParameterTypeDescription
url *string
tabIdintegerTarget tab. Defaults to the current tab.

go_back

Go back one step in the tab history and wait for the page to load.

ParameterTypeDescription
tabIdintegerTarget tab. Defaults to the current tab.

go_forward

Go forward one step in the tab history and wait for the page to load.

ParameterTypeDescription
tabIdintegerTarget 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.

ParameterTypeDescription
filterstring
tabIdintegerTarget 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.

ParameterTypeDescription
query *string
tabIdintegerTarget 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.

ParameterTypeDescription
tabIdintegerTarget 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.

ParameterTypeDescription
maxRowsintegerRows per table at most.
tabIdintegerTarget 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.

ParameterTypeDescription
tabIdintegerTarget tab. Defaults to the current tab.

click

Click an element by ref, or a viewport point by x and y. Prefer ref.

ParameterTypeDescription
buttonstring
clickCountinteger2 for double click.
refstringElement ref such as "e12", from read_page or find.
tabIdintegerTarget tab. Defaults to the current tab.
xnumberViewport x in CSS px (as in a screenshot).
ynumberViewport 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.

ParameterTypeDescription
refstringElement ref such as "e12", from read_page or find.
tabIdintegerTarget tab. Defaults to the current tab.
xnumberViewport x in CSS px (as in a screenshot).
ynumberViewport 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.

ParameterTypeDescription
fromRefstringElement ref such as "e12", from read_page or find.
fromXnumber
fromYnumber
tabIdintegerTarget tab. Defaults to the current tab.
toRefstringElement ref such as "e12", from read_page or find.
toXnumber
toYnumber

type

Type text into the focused element, or into the element given by ref (focused first). Does not press Enter; use key for that.

ParameterTypeDescription
text *string
refstringElement ref such as "e12", from read_page or find.
tabIdintegerTarget 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".

ParameterTypeDescription
keys *string
tabIdintegerTarget 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.

ParameterTypeDescription
direction *string
amountnumberDistance in px.
refstringElement ref such as "e12", from read_page or find.
tabIdintegerTarget tab. Defaults to the current tab.
xnumberViewport x in CSS px (as in a screenshot).
ynumberViewport 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.

ParameterTypeDescription
ref *stringElement ref such as "e12", from read_page or find.
value *string | boolean
tabIdintegerTarget 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.

ParameterTypeDescription
attachmentIdsarrayIds of files the user attached.
fileNamestringName for a file made from text, e.g. "notes.txt".
refstringElement ref such as "e12", from read_page or find.
tabIdintegerTarget tab. Defaults to the current tab.
textstringContents of a file made from text.
urlstringDownload this file and upload it.
xnumberViewport x in CSS px (as in a screenshot).
ynumberViewport 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.

ParameterTypeDescription
accept *boolean
promptTextstring
tabIdintegerTarget 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.

ParameterTypeDescription
msnumber
tabIdintegerTarget tab. Defaults to the current tab.
textstringResolve as soon as this text is in the page (case-insensitive).
timeoutMsnumber

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.

ParameterTypeDescription
clearbooleanEmpty the buffer after reading.
levelstringOnly this level.
limitintegerNewest N lines to return.
patternstringOnly messages containing this text (case-insensitive).
tabIdintegerTarget 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.

ParameterTypeDescription
clearbooleanEmpty the buffer after reading.
limitintegerNewest N requests to return.
methodstringOnly this HTTP method, e.g. "POST".
status"failed" (no response), "4xx", "5xx" or an exact status code.
tabIdintegerTarget tab. Defaults to the current tab.
urlPatternstringOnly 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.

ParameterTypeDescription
requestId *string
tabIdintegerTarget 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.

ParameterTypeDescription
idstringWorkflow id from workflows_list.
namestringWorkflow name, when the id is not known.
variablesobjectValues 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.

ParameterTypeDescription
code *string
tabIdintegerTarget tab. Defaults to the current tab.