Skip to main content
Glama
playwright-ui-mcp

playwright-ui-mcp

by ailabs-393

browser_get_content

Retrieves the HTML and visible text content of a specified browser page, enabling inspection or extraction of page data.

Instructions

Get the HTML and text content of the current page

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": {
      "pageId": "<pageId>"
    },
    "name": "browser_get_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdYesThe page ID to get content from

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/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 behavioral burden. It does state the return payload shape (HTML and text), but says nothing about output size limits, truncation, whether iframes/shadow DOM are included, or behavior when the page is still loading — significant gaps for a content-extraction 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?

A single front-loaded sentence with zero filler; the resource and scope appear immediately. Nothing needs trimming, and the phrasing mirrors the schema's terminology.

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?

The tool is simple (one required param, flat schema), and the description identifies the returned content. However, with no output schema and no annotations, it should say more about return structure and page-state prerequisites to be fully self-sufficient.

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?

Only one parameter (pageId) exists and schema description coverage is 100%, so the schema already documents it fully. The description adds no extra meaning such as whether the ID must come from browser_new_page/browser_navigate or what format it takes, so 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?

Specific verb 'Get' plus concrete resources 'HTML and text content' scoped to 'the current page'. This distinguishes it implicitly from siblings like browser_screenshot (image) and browser_get_visible_elements (DOM element list), though no sibling is named explicitly.

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?

There is no guidance on when to use this instead of browser_evaluate, browser_screenshot, or browser_get_visible_elements, and no stated preconditions (e.g. that a page must be loaded or active). The agent must infer selection from the tool name and sibling names alone.

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