Skip to main content
Glama
yinnho

AginxBrowser

session_storage

Read-only

Capture localStorage and sessionStorage for a session's origin, then reuse the snapshot to restore logged-in state in a new session — covering session tokens that cookies cannot carry.

Instructions

Snapshot the session's localStorage/sessionStorage for the current origin: {url, local_storage, session_storage}. Feed it back via session_create's storage field to restore a logged-in state in a new session — the half of login state that cookies can't carry (many sites keep the session token in localStorage). Call before the session idles out.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYesSession ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.5.1
    • removedInput schema / title
      Removed value: -"SessionCookiesParams"
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint: true, and the description reinforces this with 'Snapshot', which implies no mutation. The description adds valuable behavioral context: the exact data returned (url, local_storage, session_storage), its purpose in restoring login state, and a timing constraint (before idle). No contradiction with annotations.

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

Conciseness4/5

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

The description is two sentences that are information-dense and free of redundancy. It front-loads the main action and return shape, then provides the use case and a timing note. Each clause earns its place, though it could be slightly shorter without losing critical context.

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 there is no output schema, the description compensates by specifying the return fields. It also explains the intended workflow (session_create) and why the tool matters. While it doesn't cover edge cases like empty storage or error conditions, for a simple read-only snapshot tool this is sufficient for an agent to invoke it correctly.

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?

The input schema has a single parameter 'session_id' with 100% coverage (description: 'Session ID'). The tool description does not add any additional meaning or constraints for this parameter beyond what the schema provides. Per the baseline rule for high schema coverage, a score of 3 is appropriate.

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 uses a specific verb 'Snapshot' and clearly identifies the resource (localStorage/sessionStorage for the current origin). It also specifies the return shape {url, local_storage, session_storage}, which makes the tool's function unambiguous and distinct from generic session tools like session_state or session_export.

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 concrete usage guidance: feed the result back via session_create's 'storage' field to restore a logged-in state, and call it before the session idles out. It also explains why it's needed (cookies can't carry this half of login state). It doesn't explicitly mention alternatives or exclusions, but the use case is well-defined.

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