Skip to main content
Glama
Playwright MCP Proxy

Playwright MCP Proxy

by noomz

get_content

Retrieve stored page snapshot content from a prior request, with optional substring filtering and before/after context lines.

Instructions

Get page snapshot content from a previous request (Phase 2: with diff support, grep-like context)

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": {
      "ref_id": "<ref_id>"
    },
    "name": "get_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
ref_idYesReference ID from a previous request
search_forNoOptional substring to filter content
after_linesNoNumber of context lines after match (like grep -A, default: 0)
before_linesNoNumber of context lines before match (like grep -B, default: 0)
reset_cursorNoReset diff cursor and return full content (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.4

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden and does not say whether the operation is read-only or mutates cursor state, even though 'reset_cursor' implies persistent server-side state. 'Diff support' is mentioned but the description never explains what a diff cursor is, how it advances, or what a subsequent call returns versus a first call.

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 front-loaded sentence with the core capability stated first. The parenthetical 'Phase 2' is internal roadmap jargon that does not help an agent and slightly dilutes otherwise tight phrasing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 5-parameter tool with no annotations and no output schema, the description leaves meaningful gaps: nothing states what the returned content looks like, whether calls are stateful across invocations, or what happens when ref_id is stale. The diff/cursor model, which is the tool's most distinctive behavior, is asserted rather than explained.

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 100%, so every parameter already has a documented meaning, and the description's 'grep-like context' phrasing is consistent with the before_lines/after_lines fields without adding syntax or defaults. Baseline 3 is appropriate since the schema does the heavy lifting.

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+resource: retrieve page snapshot content produced by a previous request, keyed by a reference ID. It does not name or differentiate itself from likely siblings such as browser_snapshot or get_console_content, so an agent must infer the boundary between them.

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

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance is given beyond the phrase 'from a previous request', which only weakly implies this is a follow-up retrieval tool. Nothing tells the agent how this differs from browser_snapshot or when diff/grep behavior is appropriate.

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