Skip to main content
Glama

storage.export

Read-only

Exports browser localStorage, sessionStorage, and cookies to a JSON artifact, or emits a Playwright storageState file to start authenticated tests without replaying login.

Instructions

Dump localStorage, sessionStorage and cookies to a JSON artifact. format:"playwright" instead emits a real Playwright storageState file, which is what a test loads to start authenticated without replaying the login form.

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": "storage.export"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoDefault "browserd" (diagnostic dump). "playwright" emits a loadable storageState; note it has no sessionStorage field.
save_pathNo
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already say this is read-only and open-world. The description adds important behavior beyond that: it produces an artifact, playlist format emits a loadable storageState file, and crucially notes that the playwright format has no sessionStorage field. It does not explain where save_path writes or what the artifact response looks like, but the key behavioral caveat is disclosed.

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?

Two sentences, front-loaded with the core operation and followed by the most important format distinction and caveat. Every sentence earns its place with no filler.

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 zero-required-parameter export tool with no output schema, the description covers the main output forms and a critical limitation of the playwright format. It is nearly complete, though save_path behavior and artifact destination details are left implicit.

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 coverage is 75%, so most parameters are already documented. The description adds some meaning for format by explaining browserd as a diagnostic dump and playwright as a loadable storageState, but save_path remains undocumented and the description does not compensate for that gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource: dumping localStorage, sessionStorage, and cookies to a JSON artifact. It also clearly distinguishes the two output formats. It does not differentiate itself from related storage-reading siblings such as storage.snapshot or storage.get, so it stops short of a 5.

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

Usage Guidelines3/5

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

The description usefully explains when the playwright format is appropriate: for tests that start authenticated without replaying login. That is clear format guidance, but there is no explicit when-to-use guidance versus alternative storage inspection tools, and no when-not guidance.

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

Deploy Server

Other Tools