Skip to main content
Glama

browser.fork_session

Clone a browser session's cookies, storage, and current URL into a new independent session to branch workflows or run parallel variants.

Instructions

Fork a session: snapshot its cookies, storage state, and current URL, then create a new independent session with that state. Useful for branching workflows or running parallel variants. Without start_url, a page that is no URL to open (blank, data:, Chrome's error page) forks onto a blank page. Counts as a new session: needs MAX_SESSIONS of at least 2.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "browser.fork_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOmitted: fork-of-<source name>.
start_urlNoOmitted: the source session's current URL, or a blank page when that is no URL to open (blank, data:, Chrome's error page for a stopped or failed navigation).
session_idNoTarget session id, from browser.create_session or browser.list_sessions. Optional when exactly one session is live; observe and act tools create one when none is.
user_agentNoOmitted: the source session's User-Agent.
proxy_personaNoOmitted: the source session's proxy persona.
protection_modeNoOmitted: the source session's witness protection mode.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.19.0
    • addedInput schema / properties / protection_mode
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "normal",
      +        "confidential"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Omitted: the source session's witness protection mode.",
      +  "title": "Protection Mode"
      +}
    • addedInput schema / properties / proxy_persona
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 200,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Omitted: the source session's proxy persona.",
      +  "title": "Proxy Persona"
      +}
    • changedInput schema / properties / start_url / description
      Previous value: -"Omitted: the source session's current URL; refused while that is Chrome's error page for a stopped or failed navigation."New value: +"Omitted: the source session's current URL, or a blank page when that is no URL to open (blank, data:, Chrome's error page for a stopped or failed navigation)."
    • addedInput schema / properties / user_agent
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 2000,
      +      "minLength": 1,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Omitted: the source session's User-Agent.",
      +  "title": "User Agent"
      +}
  2. Changed1 schema field changedv1.12.1
    • changedInput schema / properties / start_url / description
      Previous value: -"Omitted: the source session's current URL."New value: +"Omitted: the source session's current URL; refused while that is Chrome's error page for a stopped or failed navigation."
  3. Addedv1.8.1
  4. Removedv1.4.2
  5. Changed3 schema fields changedv1.0.3
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / session_id / maxLength
      Added value: +120
    • addedInput schema / properties / session_id / minLength
      Added value: +1
  6. First observedv0.5.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, and openWorldHint=true. The description adds genuinely non-redundant behavior: a fork consumes a session slot with a minimum MAX_SESSIONS of 2, and the blank-page fallback when the source has no openable URL. It stops short of saying whether the source session is left untouched or what happens when the session cap is hit.

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

Conciseness3/5

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

The lead sentence is well front-loaded and the MAX_SESSIONS constraint earns its place, but the middle sentence ('a page that is no URL to open ... forks onto a blank page') is garbled and duplicates the start_url schema text. Tightening that clause into something like 'Without start_url, the source URL is reused, or a blank page if it has no openable URL' would remove both the awkwardness and the redundancy.

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

Completeness4/5

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

For a six-parameter, all-optional mutation tool with annotations and no output schema, the description covers purpose, state inheritance, and the session-cap constraint. It omits what the call returns (presumably the new session id, needed for subsequent calls) and any failure behavior at the session limit, which are the remaining gaps for an agent wiring a fork into a workflow.

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%, so all six optional parameters (name, start_url, session_id, user_agent, proxy_persona, protection_mode) are already documented, including their inheritance defaults. The description restates the start_url fallback nearly verbatim from the schema rather than adding new meaning, so it neither compensates for nor improves on the schema — baseline 3 applies.

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 opens with a specific verb+resource ('Fork a session') and immediately enumerates what is captured (cookies, storage state, current URL) and what is produced (a new independent session with that state). This makes it distinguishable from browser.create_session without opening either schema, since 'independent' plus state inheritance defines the fork semantics.

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

Usage Guidelines4/5

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

It gives a concrete usage context ('branching workflows or running parallel variants') and a hard precondition ('needs MAX_SESSIONS of at least 2'). It does not explicitly state when to prefer browser.create_session instead (fresh state, no source session), so the exclusion side is left to inference.

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