Skip to main content
Glama
Browser Session MCP

Browser Session MCP

request_guest_grant

Ask a person to let you drive tabs in their own Chrome via their guest extension, so their logins stay on their machine. Returns a link and a sessionId for tasks they must do as themselves.

Instructions

Ask a person (the guest) to let you drive tabs in their own Chrome, through the browser-session guest extension they load themselves, so their logins and cookies never leave their machine. Use it when a person must act as themselves on a site (configure a GitHub App on their repo, change a setting only they can reach) and handing their login to this server's Chrome with request_human_takeover would be wrong. Returns a link to send them and a sessionId (guest-…). Once they accept in the extension, navigate, take_snapshot, take_screenshot, click and type work with that sessionId; every other tool fails for it, and until they accept those calls fail saying so. Their extension enforces everything: only URLs matching allowedUrlPatterns, never sign-in, password, two-factor, security, token, key or billing pages, no scripts, cookies or other tabs, and in ask mode they press Allow before every click and Enter (a click call then waits up to 90 s). Selectors are CSS, or a line from take_snapshot such as button "Install"; no jev:. They may pause or end it at any time. What you see in snapshots and screenshots is what they share with you. Fails if TAKEOVER_BASE_URL isn't configured.

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": {
      "purpose": "<purpose>",
      "requester": "<requester>",
      "allowedUrlPatterns": "<allowedUrlPatterns>",
      "startUrl": "<startUrl>"
    },
    "name": "request_guest_grant"
  }
}

Input Schema

NameRequiredDescriptionDefault
purposeYesWhat you need, shown to the guest and as their tab group's name, e.g. "Install the deploy bot on acme/api". Up to 200 characters.
startUrlYesWhere the new tab opens; must match one of the patterns.
requesterYesWho is asking, shown to the guest (marked unverified), e.g. "Ana from ops, via her AI agent". Up to 200 characters.
ttlMinutesNoMinutes the grant lasts from now, 1 to 60 (larger values are capped). Default 15.
approvalModeNo`ask` (default): the guest approves every click, Enter and Space key. `auto`: they don't, though the URL limits stay. The guest picks in the end.
allowedUrlPatternsYesPages you may be on, as scheme://host/path with `*` matching anything in the path, and `*.` allowed at the start of the host for subdomains, e.g. https://github.com/apps/deploy-bot/* or https://github.com/organizations/acme/settings/installations*. The query string isn't matched. Keep them narrow: the guest sees them.

Output Schema

NameRequiredDescriptionDefault
urlYesThe link to send the guest, to paste into the guest extension.
sessionIdYesPass to navigate, take_snapshot, take_screenshot, click and type once the guest accepts, and to revoke_guest_grant.
expiresAtMsYesWhen the grant ends, in milliseconds since the Unix epoch.
approvalModeYesWhether the extension asks the guest before every click and Enter (the guest may choose otherwise when accepting).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A4.6/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: it names the return values (a sendable link and a `guest-…` sessionId), which tools work under that sessionId and that all others fail, the extension-enforced URL/blocked-page restrictions, the 90 s wait in ask mode, and the TAKEOVER_BASE_URL precondition. The annotations (non-readOnly, openWorld, non-idempotent) are consistent with a grant-creating tool; only rate limits/expiry edge behavior beyond ttl capping is left implicit.

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?

Dense and front-loaded — the purpose, alternative and return values come first — and nearly every clause carries operational information. It is a single wall of run-on sentences without structural breaks, which costs some scannability for a description this long.

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 multi-parameter, stateful, cross-machine handshake tool, the description covers prerequisites, what the guest sees, failure modes, and the post-acceptance workflow; an output schema exists and the description still names the return values, so nothing an agent needs to call it correctly is missing.

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 behavioral meaning for parameters: allowedUrlPatterns is enforced by the guest's extension and is visible to them, and approvalMode's ask setting means a click call can block up to 90 s waiting for approval. It also specifies the selector syntax callers will use once the grant exists.

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 (ask a guest to grant control of tabs in their own Chrome via the extension they load) and explicitly contrasts the mechanism with request_human_takeover, so an agent can distinguish the two without opening either schema.

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?

Gives concrete when-to-use conditions (the person must act as themselves: configuring a GitHub App on their repo, changing a setting only they can reach) and an explicit when-not rule (never when handing their login to this server's Chrome would be acceptable). It also states the acceptance precondition — until the guest accepts, calls fail saying so.

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