Skip to main content
Glama

text

Read-only

Extract inner page content from the full page or a CSS/label/element target; after clicks or form steps, enable settle to wait for changes to stop and return the current URL.

Instructions

Get inner text (whole page or a target — @eN, @text:Foo, @label:Email, CSS, etc.). After a click or form step, pass settle=true: it waits for the page to stop changing, then reads, and returns the url too. Use that instead of a timed wait in page script.

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": "text"
  }
}

Input Schema

NameRequiredDescriptionDefault
leaseNoOptional lease token to present if the target session is leased (0.7.0). Threaded per-call; never read from the server's env.
settleNoWait up to 5s for the page text to stop changing first.
targetNoOptional @eN / @text: / @label: / CSS.
sessionNoOptional session name to target (omit for the shared 'default'). On a daemon shared with other agents, pass a UNIQUE name for stateful multi-step work (go→click→fill) so you don't collide on 'default'.
max_charsNoCap the returned text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.21.0
    • addedInput schema / properties / max_chars
      Added value: +{
      +  "default": 40000,
      +  "description": "Cap the returned text.",
      +  "type": "integer"
      +}
    • addedInput schema / properties / settle
      Added value: +{
      +  "default": false,
      +  "description": "Wait up to 5s for the page text to stop changing first.",
      +  "type": "boolean"
      +}
  2. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the read-only hint, it explains specific behaviors, such as the 'settle' parameter waiting for the page to stop changing, and that the tool returns the URL when settling.

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?

The definition is highly concise, delivering the primary functions and the most important usage advice in just two sentences with zero redundancy.

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

Completeness5/5

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

Given the high schema coverage and the richness of the description, the tool definition is complete enough for an agent to understand its function and primary use cases.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema coverage is 100%, the description adds crucial semantic value by listing the supported formats for the target string (@eN, @text:Foo, etc.).

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 clearly identifies the tool's purpose as getting the inner text, specifying that it can operate on the entire page or specific targets identified by selectors like @eN or CSS.

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?

It provides clear guidance on using the settle=true parameter, explicitly stating that it should be used as an alternative to traditional timed waits in page scripts.

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