Skip to main content
Glama

browser.fork_session

Snapshot a session's cookies, storage, and current URL, then create an independent session for branching workflows or 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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoOmitted: fork-of-<source name>.
start_urlNoOmitted: the source session's current URL.
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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.8.1
  2. Removedv1.4.2
  3. 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
  4. First observedv0.5.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations include openWorldHint=true and destructiveHint=false, indicating it creates a new state without destroying existing ones. The description adds that it snapshots cookies/storage/URL and creates an 'independent' session, clarifying that the original is unaffected. This is useful context, but it doesn't mention error scenarios or edge cases (e.g., if session_id is invalid), so it doesn't go beyond the annotations' baseline significantly.

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

Conciseness5/5

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

The description is two sentences, front-loading the core action and how it works, then adding the use case. Every sentence adds value; no fluff or redundancy. Ideal length for a tool of this complexity.

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?

Given the tool has no output schema and moderate complexity (3 params, all optional), the description covers the core function and expected use. It could mention potential errors or post-conditions (e.g., new session's status), but the description is adequate for an agent to decide to use it and understand the result. The high schema coverage compensates for missing param details.

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?

The schema provides 100% description coverage for all three parameters (name, start_url, session_id), each with clear defaults. However, the description adds no additional parameter-level detail, but since the schema is thorough, a baseline of 3 would be standard; the description's overall context about forking helps interpret the parameters, justifying a 4.

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 clearly states the action ('Fork a session'), the resource ('session'), and the mechanism ('snapshot its cookies, storage state, and current URL, then create a new independent session'). It also distinguishes from siblings by specifying it is for branching workflows, which aligns with the purpose of create/edit/delete operations, unlike list/get/observe tools.

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?

The description provides clear context for when to use the tool ('branching workflows or running parallel variants') and implies it builds on create_session/list_sessions. It doesn't explicitly exclude alternatives like create_session, but the use case is well-defined. The 'openWorldHint' annotation suggests side effects are expected, which the description aligns with.

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