Skip to main content
Glama

Read page text

get_page_text

Extract readable text from a browser page to read article, main, or body content without interacting with page elements.

Instructions

Extract the readable text content of a page (article/main/body), as plain text. Use for reading content, not interacting.

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": {
      "tabId": "<tabId>"
    },
    "name": "get_page_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdYesTarget tab ID (must be in the MCP group)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.24.1

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations supplied, the description must carry the safety profile itself; it does state this is a non-interacting read and that output is plain text, which is genuinely useful. It says nothing about whether the tab must be foregrounded, how lazy-loaded or script-rendered content is handled, truncation limits, or what happens on pages with no readable content.

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?

Two short sentences, zero filler, with the core extraction purpose and output format front-loaded and the usage constraint trailing. Every clause carries information.

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 one-parameter, non-destructive read tool with no output schema and no annotations, the definition covers purpose, scope, return format, and usage boundary. Remaining gaps are edge-case behaviors (dynamic content, truncation, empty pages) that would help but are not essential to call 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?

Schema coverage is 100% for the single tabId parameter and already documents the MCP-group constraint, so the schema handles parameter meaning. The description adds nothing about tabId beyond implying the text comes from "a page," which is the baseline expectation when the schema does the work.

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?

The description pairs a specific verb ("Extract") with a specific resource ("readable text content of a page") and pins down both scope (article/main/body) and output form (plain text). It stops short of naming a sibling such as read_page or get_accessibility_tree, so differentiation is conveyed only obliquely through "not interacting."

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?

"Use for reading content, not interacting" gives a clear positive context and an explicit exclusion, which steers an agent away from interaction tools like computer or fill_form. It does not point to a preferred alternative when other read tools might overlap, so the guidance is clear but not routing-complete.

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