Skip to main content
Glama

browser_session_storage_state

Export cookies and localStorage from a browser session, optionally saving to a file, so you can inspect or clone authentication state into another session.

Instructions

Export cookies and localStorage from a browser session (optionally saving to a file) so auth state can be inspected or cloned into another session.

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_session_storage_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
savePathNoOptional file path where the Playwright storageState JSON should be written.
sessionIdNoOptional target browser session ID. If omitted, uses the currently active session (or auto-launches one).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It discloses the extracted artifact (cookies + localStorage), the optional file write, and the session-targeting default, but it says nothing about whether the operation is read-only or side-effecting, nothing about the sensitivity of the credentials being dumped, and nothing about what happens if the active session is invalid.

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?

A single front-loaded sentence: the verb and extracted resources come first, with the optional file behavior and motivation trailing. No filler wording.

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 two-parameter, zero-required tool with a fully documented schema and no output schema, the description covers what is exported, the optional persistence, and session selection. The remaining gap is behavioral/security context (sensitivity of the exported credentials, effect on the source session), which is modest but real given the absence of annotations.

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%, with both savePath and sessionId fully documented in the schema, including the auto-launch fallback. The description only restates the optional file save, adding no new meaning beyond the schema, so the baseline of 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?

States a specific verb (export) plus the exact resources (cookies and localStorage) and the reason (auth state inspection or cloning into another session). This is clearly distinguishable from the sibling session tools (close/create/list/switch), which manage sessions rather than export their storage state.

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 clause 'so auth state can be inspected or cloned into another session' gives a concrete use context, and 'optionally saving to a file' clarifies the savePath variant. There are no explicit exclusions or named alternatives, but the purpose statement is enough to route an agent correctly among the sibling tools.

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