Skip to main content
Glama
Browser Session MCP

Browser Session MCP

request_human_takeover

Get a URL so a person can log in to the active browser session themselves, keeping passwords and passkeys from the agent. Use when a site requires human login; share the link and wait for handback.

Instructions

Get a human takeover link (URL) for the session's active page, so a person can log in themselves (passwords/passkeys the agent must not see). Use it only when a login needs a person; for a site you've logged into before, try load_browser_state first. Show the returned url to the user and keep the token for await_human_takeover. Does NOT block. The person starts in control, and every call on the session except reading logs fails until they hand control back; after that the link stays open for them to watch you work, and they can take control again, which pauses your calls the same way. After showing the URL, run await_human_takeover in a background task (subagent or job), since the human may take many minutes; with no background task, end your turn and call it once the user says they're done. The URL is a bearer credential that gives live control of the tab until ttlMinutes passes, so share it only with the intended person. Fails if TAKEOVER_BASE_URL isn't configured on the server.

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>"
    },
    "name": "request_human_takeover"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionIdYesThe id returned by open_browser_session. Errors if no open session has it.
ttlMinutesNoMinutes the link stays valid, 1 to 60 (larger values are capped). The link is a bearer credential, so keep it short. Default 30.

Output Schema

NameRequiredDescriptionDefault
urlYesThe link to show the person who will log in.
tokenYesPass to await_human_takeover.
expiresAtMsYesWhen the link stops working, in milliseconds since the Unix epoch.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.5
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "properties": {
      +    "expiresAtMs": {
      +      "description": "When the link stops working, in milliseconds since the Unix epoch.",
      +      "format": "uint128",
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    "token": {
      +      "description": "Pass to await_human_takeover.",
      +      "type": "string"
      +    },
      +    "url": {
      +      "description": "The link to show the person who will log in.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "url",
      +    "token",
      +    "expiresAtMs"
      +  ],
      +  "type": "object"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / sessionId / description
      Added value: +"The id returned by open_browser_session. Errors if no open session has it."
    • addedInput schema / properties / ttlMinutes / description
      Added value: +"Minutes the link stays valid, 1 to 60 (larger values are capped). The link is a bearer credential, so keep it short. Default 30."
  3. First observedv0.1.2

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations (readOnlyHint=false, openWorldHint=true), disclosing that the call does NOT block, that all non-log-reading calls on the session fail while the human holds control, and that control can be re-taken, pausing the agent again. It also flags the URL as a bearer credential with a TTL bound and a server-config failure mode. Annotations already mark it non-destructive and open-world, and the extra context is substantial, though the exact output payload shape is left to the output schema.

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?

Purpose and the sibling alternative are front-loaded, and most sentences carry operational weight. The mid-section describing control handback is dense and slightly repetitive ('fails until they hand control back' / 'pauses your calls the same way'), but no sentence is filler.

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?

For a state-changing, credential-issuing tool, the description covers the blocking behavior, the degraded-session side effect, credential hygiene, TTL, and the required follow-up call. With an output schema present, return-value detail is correctly omitted.

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

Parameters3/5

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

Schema description coverage is 100% and both parameters are already documented, so the baseline applies. The description echoes the bearer-credential caution and the TTL expiry but adds little parameter-level detail beyond the schema; the 'keep the token' remark concerns the return value, not input semantics.

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?

States a specific verb and resource ('Get a human takeover link (URL) for the session's active page') plus the purpose (so a person can log in themselves). It is clearly distinguishable from await_human_takeover and load_browser_state, both of which are named in the text.

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?

Explicitly bounds usage: 'Use it only when a login needs a person' and routes to load_browser_state for previously-authenticated sites. It also names the failure precondition (TAKEOVER_BASE_URL not configured) and prescribes the follow-up flow with await_human_takeover.

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