Read the text of a page (or one element)
qa_readReads the rendered text of a page or element, including long content like one-time codes, error paragraphs, and invoice numbers that snapshot refs truncate. Returns visible innerText only, capped and read-only.
Instructions
Return the RENDERED text of the page under test, or of a single element named by a qa_snapshot ref or a CSS selector. This is the companion to qa_snapshot: that one maps what you can ACT on (roles, names, refs) and caps every name at 80 characters, so anything longer — a one-time code in an email, an error paragraph, a generated invoice number — is invisible to it. Uses innerText, so hidden branches and a mail thread's collapsed quoted history stay out. Read-only: it executes nothing and returns text, capped (default 4000 chars, max 20000).
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": "qa_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | A ref from qa_snapshot (e.g. "e12") — preferred when you already have one | |
| tabId | No | Target tab (from qa_tabs); omit for the active tab | |
| frameId | No | Which frame to ask, from qa_frames. Omit for the page itself. A payment form, an SSO step or an embedded widget usually lives in a frame of its own, and a cross-origin one can only be read from inside it. | |
| maxChars | No | Cap the returned text (default 4000, max 20000) | |
| selector | No | CSS selector; omit both to read the whole page body |