Skip to main content
Glama
Browser Session MCP

Browser Session MCP

act

Destructive

Automate multi-step goals on the current browser tab by extracting interactive elements and text, choosing each click, type, scroll, or key press, and repeating until done or blocked.

Instructions

Act toward a goal on the session's active tab in one call: the server extracts the page's interactive elements (including open shadow roots and same-origin iframes) and visible text, asks the Jev decision model for the next step, does it (click, type, select, hover, right-click, drag, scroll, back, wait, or press a key such as Enter, Escape, Tab or an arrow; on a mobile session it taps instead of clicking, drags with a finger, and can swipe an element or the screen), and repeats until the goal reads achieved, nothing looks able to make progress, or the step budget runs out. Each step is one cheap Jev request (~150 to 500 ms), not a driving-LLM round trip, so multi-step flows take seconds and fractions of a cent. Pass values (e.g. { query: "Oolong" }) for anything to type: Jev only sees the keys and picks which field each belongs to; the text goes straight to the page, so secrets never reach a model. JavaScript dialogs are accepted and listed in dialogs, and a link that opens a new tab is followed there. Needs TYPESAFE_API_KEY; every step lands on an element the extraction just offered, and when Jev isn't sure of a step it stops with status uncertain and the candidates it was weighing instead of guessing. status is completed, likely_completed (Jev leaned toward done but wasn't sure), uncertain, stuck, needs_login (pair with request_human_takeover or load_browser_state; a run with values keeps going at a login form), needs_human (a CAPTCHA or bot check; use request_human_takeover), needs_confirmation (only with confirmIrreversible; pending names the click it held back), blocked (an error page), no_progress or max_steps. Returns a per-step trace with confidences. Jev can be eager to call a goal met: verify with take_snapshot or take_screenshot afterwards. For a single action, click/type with a plain-language selector is cheaper.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sessionId": "<sessionId>",
      "goal": "<goal>"
    },
    "name": "act"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalYesWhat to achieve on the active tab, e.g. "open the article about espresso". Re-decided after every step against the page as it is.
valuesNoText the loop may type, keyed by role, e.g. { query: "Oolong", password: "hunter2" }. Only the keys are sent to Jev; the values are typed via CDP.
maxStepsNoStep budget before stopping with status max_steps. Default 8, capped at 32.
sessionIdYesThe id returned by open_browser_session. Errors if no open session has it.
confirmIrreversibleNoStop with status needs_confirmation before a click Jev judges can't be undone (placing an order, paying, sending, deleting). Default false.

Output Schema

NameRequiredDescriptionDefault
urlYesThe page's URL at the final decision.
goalYesThe goal as given.
stepsYesWhat was done, in order.
titleYesThe page's title at the final decision.
statusYes"completed", "likely_completed", "uncertain", "stuck", "needs_login", "needs_human", "needs_confirmation", "blocked", "no_progress" or "max_steps".
dialogsNoJavaScript dialogs the page opened, which `act` accepted.
pendingNoFor "needs_confirmation": the element `act` stopped short of clicking.
candidatesNoFor "uncertain" and "likely_completed" stops on a low-confidence pick: what Jev was choosing between, most likely first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.1.18
    • addedInput schema / properties / confirmIrreversible
      Added value: +{
      +  "description": "Stop with status needs_confirmation before a click Jev judges can't be undone (placing an order, paying, sending, deleting). Default false.",
      +  "type": "boolean"
      +}
    • addedOutput schema / $defs / ActCandidate
      Added value: +{
      +  "properties": {
      +    "probability": {
      +      "description": "Jev's probability for it.",
      +      "format": "double",
      +      "type": "number"
      +    },
      +    "target": {
      +      "description": "The element or action, as it was offered to Jev.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "target",
      +    "probability"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / $defs / ActStep / properties / action / description
      Previous value: -"\"click\", \"type\", \"select\", \"scroll_down\", \"scroll_up\" or \"wait\"."New value: +"\"click\", \"type\", \"select\", \"scroll_down\", \"scroll_up\", \"wait\",\n\"back\", \"press_key\" (the key in `target`), \"hover\", \"right_click\",\n\"drag\", or \"missed\" when the element was gone before it could be\nacted on."
    • addedOutput schema / properties / candidates
      Added value: +{
      +  "description": "For \"uncertain\" and \"likely_completed\" stops on a low-confidence\npick: what Jev was choosing between, most likely first.",
      +  "items": {
      +    "$ref": "#/$defs/ActCandidate"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / dialogs
      Added value: +{
      +  "description": "JavaScript dialogs the page opened, which `act` accepted.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / pending
      Added value: +{
      +  "description": "For \"needs_confirmation\": the element `act` stopped short of\nclicking.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedOutput schema / properties / status / description
      Previous value: -"\"completed\", \"stuck\" or \"max_steps\"."New value: +"\"completed\", \"likely_completed\", \"uncertain\", \"stuck\", \"needs_login\",\n\"needs_human\", \"needs_confirmation\", \"blocked\", \"no_progress\" or\n\"max_steps\"."
  2. Addedv0.1.14

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations, it discloses how extraction works (shadow roots, same-origin iframes), what actions Jev can take, mobile-specific tapping/swiping, latency and cost per step, secret handling through values, dialog and new-tab behavior, auth requirement, uncertainty behavior with candidates, and the full status vocabulary. This is rich behavioral context that annotations alone do not provide.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and operating loop are front-loaded, and nearly every clause carries useful information for a complex agentic browser tool. It is dense and heavily parenthetical in one long paragraph, so readability could be improved, but the content is not padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity, destructive/open-world annotations, 100% schema coverage, and the presence of an output schema, the description is complete enough for an agent to call it correctly. It covers prerequisites, actions, failure and uncertainty states, follow-up tools, secret handling, and verification needs.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents each parameter. The description still adds meaningful semantics beyond the schema, especially that values are typed straight to the page and only keys are visible to Jev, that goal is re-decided after every step, and that confirmIrreversible produces needs_confirmation with pending details.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: act toward a goal on the session's active tab, with the full extract-decide-act-repeat loop. It explicitly distinguishes itself from cheaper single-action siblings by saying 'For a single action, click/type with a plain-language selector is cheaper.'

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It clearly frames when to use this tool (multi-step goal-oriented flows) and when not to use it (single actions should use click/type). It also gives concrete follow-up guidance for outcomes: needs_login pairs with request_human_takeover or load_browser_state, needs_human uses request_human_takeover, and completion should be verified with take_snapshot or take_screenshot.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.