Skip to main content
Glama

browser_save_state

Save current cookies and localStorage to disk so sessions persist across restarts and avoid repeated logins; requires BROWSER_MCP_STORAGE_STATE.

Instructions

把当前登录态(cookie/localStorage)保存到磁盘,重启后免登录。需配置 BROWSER_MCP_STORAGE_STATE

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose the key prerequisite, an environment variable BROWSER_MCP_STORAGE_STATE, and the downstream effect of restart-free login. It omits where the file is written, whether existing saved state is overwritten, what happens if no session exists, and what the call returns, which matters for a disk-writing tool.

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 short clauses: the action and effect first, then the configuration requirement. Every phrase carries information; no filler or repetition of the tool name.

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-parameter, output-schemaless tool the description covers the action, the persisted data types, the post-restart benefit, and the required env var. It could be stronger by stating the write target/storage location and overwrite semantics, but the essentials for correct invocation are present.

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 tool takes zero parameters and the schema is empty, so there is nothing to document; the description correctly does not invent parameters and instead explains the configuration knob (the env var) that controls behavior.

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 gives a specific verb and resource — saving the current login state (cookie/localStorage) to disk — plus the observable outcome (免登录 after restart). No sibling tool performs state persistence, so the agent can identify this as the persistence tool without opening the schema.

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?

Usage is implied by the goal (persist login across restarts) but there is no explicit when-to-use/when-not guidance, no mention of how it relates to siblings like browser_close, and no note on whether a session must already be open or logged in before calling.

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