Skip to main content

Module browser_tool

Module browser_tool 

Source
Expand description

Browser: one tool for the browser panes an agent drives, with an action (docs/specs/SPEC_MUXAPI_TOOL_CONSOLIDATION_2026_10_15.md §4.2, slice S2). It replaces OpenBrowser and the sixteen Browser* tools; their handlers (browser.rs) run each action unchanged. An action that changes the page can wait and read it again in the same call.

Constants§

ACTS 🔒
CHANGES_THE_PAGE 🔒
Actions after which until_* and snapshot may follow in the same call.
TAKE_CONTROL_WAIT 🔒
How long a take_control waits for srv: the person has 120 s to answer the pane’s question, and the shared client’s own limit (10 s) would end the call long before.

Functions§

call 🔒
close 🔒
close: Stop’s pane with the tab named: that tab closes, and its pane only when it was the last. With none, ClosePane would end the caller’s own session, so a pane is required and there is no default.
control_call 🔒
POST body to srv’s /api/v1/ui/browser/{route} and read its answer, or fail with what srv said. wait is the time limit for a call that waits for the person; none: the client’s own.
follow_wait_args 🔒
The wait that follows an action, from its until_* parameters only: the action’s own text (a fill’s value) is not a wait condition.
handoff_status 🔒
handoff_status: what became of a hand-off, by its id or the newest on a pane.
handoff_status_text 🔒
What the agent reads for a hand-off’s status.
masked 🔒
Everything the agent reads from a Browser call, with card, ID and bank numbers and one-time codes hidden by their shape: the last line of the secret-field rule (the host hides a secret field’s value; this hides the number a page prints in plain text, or a dialog, a popup title or the Log repeats). Not grantable: no site grant reaches it.
named_pane 🔒
The pane a take_control or release names: required, since neither defaults to the caller’s own.
only 🔒
arguments with only keys, for a follow-up handler that checks what it’s given.
release 🔒
release: stop driving a pane, so that it has no driver and another agent can take it without asking the person.
retake 🔒
retake: drive again a pane the user took over and gave back. The pane is required (it is not the caller’s own), and a snapshot comes with the answer: the user has been using the page, so what the agent last saw is out of date.
run 🔒
One Browser call: the action, then any follow-up it asked for.
take_control 🔒
take_control: drive a browser pane the agent did not open. srv may ask the person in the pane first (their Personal sign-ins, a pane another agent drives, a pane they used a moment ago) and the call waits for the answer.