weboperator

v1.6.0
io.github.KazKozDev/weboperator Checked 9 hours ago Published 9 days ago

Hands your live Chrome tab to any MCP client — snapshot, navigate, click, type, extract.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

browser_snapshot

Capture the structured accessibility tree and numbered interactive elements (buttons, inputs, links) from a browser tab (the focused one unless tabId is given).

ParameterTypeDescription
allElementsboolean
diffboolean
includeImagesboolean
maxNodesinteger
minImageAreainteger
querystring
refPrefixstring
rolesarray
shadowboolean
tabIdnumberOptional browser tab id to act on instead of the focused tab.
textboolean

browser_navigate

Navigate a browser tab (the focused one unless tabId is given) to a specified URL.

ParameterTypeDescription
url *stringThe URL to navigate to (e.g. "https://google.com").
tabIdnumberOptional browser tab id to act on instead of the focused tab.

browser_click

Click an element on the webpage by its snapshot ref (e.g. "@e12"), numeric index, or CSS selector.

ParameterTypeDescription
buttonstring
clickCountinteger
indexnumberThe numeric index of the interactive element from the snapshot (mapped to ref "@e<index>").
modifiersstring
refstringElement reference from browser_snapshot (e.g. "@e12"). Preferred over index; also used to target a scroll container.
selectorstringAlternative CSS selector of the element to click.
tabIdnumberOptional browser tab id to act on instead of the focused tab.

browser_type

Type text into an input field by snapshot ref, element index or CSS selector.

ParameterTypeDescription
text *stringThe text to type into the field.
clearbooleantrue replaces the field content, false appends to it (default: replace).
indexnumberThe numeric index of the input element from the snapshot (mapped to ref "@e<index>").
refstringElement reference from browser_snapshot (e.g. "@e12"). Preferred over index; also used to target a scroll container.
selectorstringAlternative CSS selector of the input element.
tabIdnumberOptional browser tab id to act on instead of the focused tab.

browser_press

Press a keyboard key on a webpage (e.g. "Enter", "Tab", "Escape", "ArrowDown", "Backspace").

ParameterTypeDescription
key *stringThe key to press (e.g. "Enter", "Tab", "Escape").
modifiersstringOptional key modifiers, e.g. "Control+Shift".
refstringElement reference from browser_snapshot (e.g. "@e12"). Preferred over index; also used to target a scroll container.
tabIdnumberOptional browser tab id to act on instead of the focused tab.

browser_scroll

Scroll a page or an inner scroll container. Pass ref to scroll a specific container (e.g. a virtualized message list) instead of the window.

ParameterTypeDescription
amountnumberNumber of pixels to scroll (default: 500).
blockstring
directionstringDirection to scroll (default: "down").
refstringElement reference from browser_snapshot (e.g. "@e12"). Preferred over index; also used to target a scroll container.
tabIdnumberOptional browser tab id to act on instead of the focused tab.
tostring

browser_screenshot

Capture a visual PNG screenshot of a browser tab (the focused one unless tabId is given).

ParameterTypeDescription
formatstring
fullPageboolean
qualityinteger
refstringElement reference from browser_snapshot (e.g. "@e12"). Preferred over index; also used to target a scroll container.
saveTostringAbsolute local output path. Existing files are not overwritten.
tabIdnumberOptional browser tab id to act on instead of the focused tab.

browser_extract

Extract text or structured data from the webpage according to an extraction instruction.

ParameterTypeDescription
collectionIdstringReturned by the first mode call; pass it to resume the same collection.
instructionstringExtraction guidance or prompt (e.g. "Extract all product prices and titles").
modestringSelf-checking collection. "rows" saves list records, follows Next or scrolls the list, rechecks a load that adds nothing, and stops at target or at the total the pager claims. "chunk" reads long text…
refstringElement reference from browser_snapshot (e.g. "@e12"). Preferred over index; also used to target a scroll container.
schemaobjectJSON Schema, validated without eval. Unsupported keywords return an explicit error. Extraction uses the configured model.
selectorstringOptional CSS selector to scope extraction.
sinceintegerReturn only rows (or text characters) after this count; pass nextSince from the previous call.
tabIdnumberOptional browser tab id to act on instead of the focused tab.
targetintegerWith mode="rows": how many records to collect. Without it, one capture of the current list.

browser_solve_captcha

Attempt to detect and automatically solve or click Cloudflare Turnstile, reCAPTCHA, hCaptcha, slider puzzle, or visual text challenges in the active tab.

ParameterTypeDescription
tabIdnumberOptional browser tab id to act on instead of the focused tab.
typestringOptional captcha type to target (default: auto).

weboperator_execute_goal

Execute an autonomous browser goal end-to-end using WebOperator multi-step planner.

ParameterTypeDescription
goal *stringNatural language goal for the agent to achieve (e.g. "Find cheapest flight from Paris to Rome on Kayak").
autoConfirmboolean
startUrlstring
tabIdnumberOptional browser tab id to act on instead of the focused tab.
timeoutMsnumberMaximum timeout in milliseconds (default: 120000).
waitbooleanfalse returns taskId immediately; default true.

browser_eval

Evaluate JavaScript in the page main world. Nonzero frameId targets that Chrome frame when available to CDP.

ParameterTypeDescription
expression *string
awaitPromiseboolean
frameIdinteger
returnByValueboolean
tabIdnumberOptional browser tab id to act on instead of the focused tab.
timeoutMsinteger

browser_wait

Wait for a condition. urlPattern is a URL substring; network_idle observes fewer than 2 requests for 500ms, with an explicit DOM quiet fallback if CDP is unavailable.

ParameterTypeDescription
until *string
pollMsinteger
refstringElement reference from browser_snapshot (e.g. "@e12"). Preferred over index; also used to target a scroll container.
selectorstring
tabIdnumberOptional browser tab id to act on instead of the focused tab.
textstring
timeoutMsinteger
urlPatternstring
visibleboolean

tabs_list

List browser tabs with ids, titles, URLs and window ids.

tabs_current

Return the focused browser tab id.

tabs_open

Open a browser tab.

ParameterTypeDescription
url *string
activeboolean
windowIdinteger

tabs_activate

Activate a tab and focus its window.

ParameterTypeDescription
tabId *numberOptional browser tab id to act on instead of the focused tab.

tabs_close

Close specified tabs, reporting individual errors.

ParameterTypeDescription
tabIds *array

agent_task_start

Start a browser agent task; returns taskId immediately unless wait=true.

ParameterTypeDescription
goal *string
autoConfirmboolean
startUrlstring
tabIdnumberOptional browser tab id to act on instead of the focused tab.
timeoutMsinteger
waitboolean

agent_task_list

List recent agent tasks.

ParameterTypeDescription
limitinteger

agent_task_get

Read a task and its recorded steps.

ParameterTypeDescription
id *string

agent_task_stop

Request cooperative cancellation; an in-flight model call may finish first.

ParameterTypeDescription
id *string

agent_task_confirm

Approve or reject a task pending confirmation.

ParameterTypeDescription
id *string
allowbooleanLegacy alias for approve.
approveboolean

agent_task_pause

Request cooperative pause at the next agent checkpoint.

ParameterTypeDescription
id *string

agent_task_resume

Resume a cooperatively paused task.

ParameterTypeDescription
id *string

agent_task_wait

Wait for a task to finish, or return its current state at timeout.

ParameterTypeDescription
id *string
timeoutMsinteger

browser_image

Read an image by snapshot ref, returning its bytes as MCP image content.

ParameterTypeDescription
ref *stringElement reference from browser_snapshot (e.g. "@e12"). Preferred over index; also used to target a scroll container.
tabIdnumberOptional browser tab id to act on instead of the focused tab.

browser_select_option

Select an option in a native HTML select by value or label.

ParameterTypeDescription
value *string
refstringElement reference from browser_snapshot (e.g. "@e12"). Preferred over index; also used to target a scroll container.
selectorstring
tabIdnumberOptional browser tab id to act on instead of the focused tab.

browser_handle_dialog

Call action=status before triggering alert/confirm/prompt to start observing dialogs. Then explicitly accept or dismiss a pending dialog. Does not handle native file pickers or browser security prompts.

ParameterTypeDescription
action *string
promptTextstring
tabIdnumberOptional browser tab id to act on instead of the focused tab.

network_list

Start persistent capture for this tab and list captured XHR/fetch/document requests. Call before navigation to include initial traffic.

ParameterTypeDescription
limitinteger
sinceMsinteger
tabIdnumberOptional browser tab id to act on instead of the focused tab.
typestring
urlPatternstring

network_get

Read a captured response body (up to 5 MiB); request ids are scoped to tabId.

ParameterTypeDescription
requestId *string
tabIdnumberOptional browser tab id to act on instead of the focused tab.

network_clear

Start capture and clear the tab request buffer.

ParameterTypeDescription
tabIdnumberOptional browser tab id to act on instead of the focused tab.

console_list

Start persistent console/error capture and list recent entries. Earlier page console history may be unavailable.

ParameterTypeDescription
levelstring
limitinteger
sinceMsinteger
tabIdnumberOptional browser tab id to act on instead of the focused tab.

cookies_get

Read cookies via the existing debugger permission, filtered by domain or URL.

ParameterTypeDescription
domainstring
tabIdnumberOptional browser tab id to act on instead of the focused tab.
urlstring

cookies_set

Set a cookie for an HTTP(S) URL via the existing debugger permission.

ParameterTypeDescription
name *string
url *string
value *string
domainstring
expiresnumber
httpOnlyboolean
pathstring
sameSitestring
secureboolean
tabIdnumberOptional browser tab id to act on instead of the focused tab.

storage_get

Read local/session storage from the page origin.

ParameterTypeDescription
kind *string
keysarray
refstringElement reference from browser_snapshot (e.g. "@e12"). Preferred over index; also used to target a scroll container.
tabIdnumberOptional browser tab id to act on instead of the focused tab.

storage_set

Write string values to page local/session storage.

ParameterTypeDescription
items *object
kind *string
refstringElement reference from browser_snapshot (e.g. "@e12"). Preferred over index; also used to target a scroll container.
tabIdnumberOptional browser tab id to act on instead of the focused tab.

browser_upload_file

Select an existing local file in a file input. Native host validates an absolute regular-file path and size <=40 MiB.

ParameterTypeDescription
path *string
ref *stringElement reference from browser_snapshot (e.g. "@e12"). Preferred over index; also used to target a scroll container.
tabIdnumberOptional browser tab id to act on instead of the focused tab.

browser_download

Download a URL and wait for completion.

ParameterTypeDescription
url *string
filenamestring
saveAsboolean
tabIdnumberOptional browser tab id to act on instead of the focused tab.
timeoutMsinteger

downloads_list

List browser downloads.

ParameterTypeDescription
limitinteger
sinceMsinteger
tabIdnumberOptional browser tab id to act on instead of the focused tab.

downloads_read

Read a completed local download by Chrome download id, without refetching its URL.

ParameterTypeDescription
downloadId *integer
maxBytesinteger
tabIdnumberOptional browser tab id to act on instead of the focused tab.

browser_read

Read a page subtree as text or Markdown, preserving headings and links.

ParameterTypeDescription
formatstring
maxCharsinteger
refstringElement reference from browser_snapshot (e.g. "@e12"). Preferred over index; also used to target a scroll container.
selectorstring
tabIdnumberOptional browser tab id to act on instead of the focused tab.

browser_hover

Move a real mouse pointer to an element, triggering hover menus.

ParameterTypeDescription
ref *stringElement reference from browser_snapshot (e.g. "@e12"). Preferred over index; also used to target a scroll container.
tabIdnumberOptional browser tab id to act on instead of the focused tab.

browser_drag

Drag between two snapshot refs using real mouse events.

ParameterTypeDescription
from *string
to *string
modifiersstring
stepsinteger
tabIdnumberOptional browser tab id to act on instead of the focused tab.

clipboard_read

Read system clipboard text (native host on macOS; page context elsewhere).

ParameterTypeDescription
tabIdnumberOptional browser tab id to act on instead of the focused tab.

clipboard_write

Write system clipboard text (native host on macOS; page context elsewhere).

ParameterTypeDescription
text *string
tabIdnumberOptional browser tab id to act on instead of the focused tab.