Skip to main content
Glama

browser_get_page_content

Extract the current page content as text or HTML, use a CSS selector to read one part of large pages, and get truncation flags when output exceeds the character cap.

Instructions

Get the content of the current page as text or HTML. Pass selector to read one part of a large page instead of all of it - on a big logged-in app the full HTML can run past a million characters. The answer is capped at 30000 characters by default and says so when it had to cut, with the real length, so a truncated page is never mistaken for a whole one.

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

Input Schema

NameRequiredDescriptionDefault
formatNoOutput format (default: text)
selectorNoCSS selector. Reads only that element instead of the whole page. If it matches nothing the call fails rather than silently returning the whole page.
max_charsNoCap on returned characters (default: 30000). Over the cap the answer carries truncated: true and total_chars.
partitionNoRun this call in a partition from browser_partition (an id like "p1"). Leave it out for the default partition. An unknown or closed id is an error; the call is never sent to the default partition instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.33.0
    • addedInput schema / properties / partition
      Added value: +{
      +  "description": "Run this call in a partition from browser_partition (an id like \"p1\"). Leave it out for the default partition. An unknown or closed id is an error; the call is never sent to the default partition instead.",
      +  "type": "string"
      +}
  2. Changed2 schema fields changedv1.29.2
    • addedInput schema / properties / max_chars
      Added value: +{
      +  "description": "Cap on returned characters (default: 30000). Over the cap the answer carries truncated: true and total_chars.",
      +  "type": "number"
      +}
    • addedInput schema / properties / selector
      Added value: +{
      +  "description": "CSS selector. Reads only that element instead of the whole page. If it matches nothing the call fails rather than silently returning the whole page.",
      +  "type": "string"
      +}
  3. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: it discloses the 30000-character default cap, that truncation is flagged with truncated: true and the real total_chars, and that a huge logged-in app page can exceed a million characters. Missing are explicit read-only/no-side-effect statements and any auth or permission notes, which keeps it at 4 rather than 5.

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?

Three sentences, front-loaded with the core action, then scope-narrowing advice, then truncation behavior. Every sentence earns its place, though the truncation sentence is slightly wordy.

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?

No output schema exists, so the description must characterize return values, and it does: text or HTML plus truncation metadata with total length. The partition parameter is left entirely to the schema, a minor gap for a tool with multiple operating modes.

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%, so all four parameters including format, selector, max_chars, and partition are already documented in the schema, making 3 the baseline. The description reinforces selector and max_chars semantics, especially the truncation cap, but adds no format or partition detail beyond what the schema states.

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 the content of the current page as text or HTML'. That clearly separates it from siblings like browser_screenshot, browser_execute_script, or browser_extract_list. It stops short of naming a sibling as the alternative, which keeps it out of the top band.

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?

Offers implied guidance through the selector advice ('read one part of a large page instead of all of it'), which tells an agent when to narrow scope. However, it gives no explicit when-to-use-this-vs-alternatives guidance against screenshot, execute_script, or extract_list, leaving tool selection to inference.

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