Skip to main content
Glama

Import Storage State

browser_import_storage_state
Destructive

Replace active browser credentials and origin state by importing a Playwright storageState file. Clears cookies, localStorage, and IndexedDB to apply a specific authenticated profile.

Instructions

Use when a full-profile authorized reproduction explicitly needs to replace active browser credential and origin state from a Playwright storageState file. Preconditions: raw-capture and credential acknowledgements are required; CDP or userDataDir contexts also require acknowledgeStorageStateOverwrite: true. Next: navigate or reload to verify the intended authenticated state. Sensitivity: import clears and replaces cookies, localStorage, and IndexedDB and can overwrite a real logged-in profile.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
acknowledgeRawCaptureNo
acknowledgeCredentialAccessNo
acknowledgeStorageStateOverwriteNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
errorNo
resultNo
Behavior5/5

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

The description discloses that the action clears and replaces cookies, localStorage, and IndexedDB, and can overwrite a real logged-in profile. This goes beyond the annotations (destructiveHint=true) by detailing exactly what is destroyed.

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?

Three concise sentences: first states purpose and when to use, second lists preconditions, third gives next step and sensitivity. No irrelevant information.

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?

Given the tool's destructive nature and the presence of an output schema (so return values need not be explained), the description covers preconditions, behavioral effects, and next steps adequately.

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?

With 0% schema description coverage, the description compensates by explaining the purpose of the acknowledgment parameters (raw-capture, credential, overwrite). The 'path' parameter is implied but not explicitly described; still, it adds significant meaning beyond the schema.

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?

Description clearly states the tool replaces active browser credentials and origin state from a Playwright storageState file, with a specific verb ('import') and resource ('storage state'). It distinguishes this from siblings like browser_export_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?

Description provides explicit preconditions (acknowledgments required) and a next step (navigate/reload). It does not explicitly list alternatives or when not to use, but the specific context ('full-profile authorized reproduction') implies narrow usage.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ss26367098/rawtrace-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server