Skip to main content
Glama
Browser Session MCP

Browser Session MCP

await_human_takeover

Wait for a person to hand browser control back on the takeover page; returns completion status, page URL, and title so an agent can resume or poll again.

Instructions

Wait up to timeout (default 25 s) for the person to hand control back on the takeover page, or for the link to end. Returns { completed, watching, expired, url, title }: completed true once they handed back, with the page's URL and title; otherwise false, and call it again in a loop, each call short enough for your host's per-call limit (the default suits Executor). watching true means the link is still open: the person may watch and can take control again, and then calls on the session fail until you await the same token again. expired true means the link ran out unfinished; issue a new request_human_takeover. The person may take several minutes, so poll from a background task if you can. A session opened with a name saves its login under that name as soon as they finish. Fails on a token that request_human_takeover didn't issue or whose link has ended and was already reported.

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": {
      "token": "<token>"
    },
    "name": "await_human_takeover"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokenYesThe token returned by request_human_takeover.
timeoutNoMilliseconds to wait before returning completed: false. Default 25000, max 1800000.

Output Schema

NameRequiredDescriptionDefault
urlNoWhere the session is once finished.
titleNo
tokenYes
expiredYesTrue when the link expired unfinished: request a new one.
watchingYesTrue when they handed back but the link is still open: they may be watching, and can take control again.
completedYesTrue once the person handed control back or the link ended; false while they still have control.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv0.1.23
    • changedInput schema / properties / timeout / description
      Previous value: -"Milliseconds to wait before returning completed: false. Default 300000, max 1800000."New value: +"Milliseconds to wait before returning completed: false. Default 25000, max 1800000."
    • changedOutput schema / properties / completed / description
      Previous value: -"True once the person clicked Done; false on timeout."New value: +"True once the person handed control back or the link ended; false\nwhile they still have control."
    • addedOutput schema / properties / expired
      Added value: +{
      +  "description": "True when the link expired unfinished: request a new one.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / title
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / url
      Added value: +{
      +  "description": "Where the session is once finished.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / watching
      Added value: +{
      +  "description": "True when they handed back but the link is still open: they may be\nwatching, and can take control again.",
      +  "type": "boolean"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "completed",
      -  "token"
      -]New value: +[
      +  "completed",
      +  "watching",
      +  "expired",
      +  "token"
      +]
  2. Changed1 schema field changedv0.1.5
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "properties": {
      +    "completed": {
      +      "description": "True once the person clicked Done; false on timeout.",
      +      "type": "boolean"
      +    },
      +    "token": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "completed",
      +    "token"
      +  ],
      +  "type": "object"
      +}
  3. Changed2 schema fields changed
    • addedInput schema / properties / timeout / description
      Added value: +"Milliseconds to wait before returning completed: false. Default 300000, max 1800000."
    • addedInput schema / properties / token / description
      Added value: +"The token returned by request_human_takeover."
  4. First observedv0.1.2

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations by explaining the waiting semantics, what each result flag means, the failure mode for invalid or already-reported tokens, and the side effect that a named session saves its login on completion. Nothing here contradicts the supplied hints; readOnlyHint=false is consistent with that login-saving side effect.

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?

Front-loaded with the core wait behavior, then the return flags, then recovery steps, so an agent can stop reading once it has what it needs. It is dense but nearly every clause carries operational information; the field enumeration is slightly more verbose than necessary given an output schema exists.

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?

Complete for a polling tool: covers waiting, the loop pattern, all outcome flags, the retry path after expiry, the failure case, and the background-task recommendation. An agent can drive the full takeover cycle from this description alone.

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 baseline is 3, but the description adds real guidance: the default is 25 s, it suits Executor's per-call limit, and each call should stay short enough for the host's limit, which shapes how timeout is chosen. The token parameter's meaning is left entirely to the schema.

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: wait for the person to hand control back on the takeover page, or for the link to end. It is clearly distinguishable from request_human_takeover, which it names as the tool that issues the token.

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 says to call it again in a loop when completed is false, to poll from a background task given multi-minute human latency, and to issue a new request_human_takeover when expired is true. It also warns that calls on the session fail while watching is true until the same token is awaited again.

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