Skip to main content
Glama
Playwright DevTools MCP Server

Playwright DevTools MCP Server

by ariangibson

storage_get_local_storage

Retrieves localStorage key/value pairs from the current page for debugging. Specify a browser context and optional keys to inspect stored data.

Instructions

Get localStorage key/value pairs from the current page for debugging

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "contextId": "<contextId>"
    },
    "name": "storage_get_local_storage"
  }
}

Input Schema

NameRequiredDescriptionDefault
keysNoSpecific keys to retrieve (if not provided, gets all)
contextIdYesBrowser context ID from browser_launch

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It conveys read-only intent via "Get" and page scoping via "current page", but says nothing about permissions, behavior when a key is absent, storage size limits, or whether the page must be loaded first.

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?

A single efficient sentence with the resource and scope front-loaded. Nothing is wasted, though the trailing "for debugging" is the vaguest element.

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 read tool with no output schema, the description names the returned data shape (key/value pairs) and the page scope. Missing only edge-case behavior, which is minor for this complexity.

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%, and the schema itself explains that keys is optional and contextId comes from browser_launch. The description adds no meaning beyond that, so the baseline 3 applies.

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?

States a specific verb and resource ("Get localStorage key/value pairs") and scopes it to "the current page". The localStorage naming implicitly separates it from storage_get_session_storage and storage_get_cookies, though it never explicitly contrasts with those siblings.

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?

"for debugging" gives an implied usage context, but there is no explicit when-to-use or when-not-to-use guidance and no named alternative (e.g. session storage or cookies) for the agent to route between.

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