Get text
browser_get_textExtract visible text from a page or specific element, with optional scoping, redaction, and character limits. Use it to read UI content and verify page state.
Instructions
Visible text of an element or the page (redacted, truncated to maxChars).
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_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nth | No | ||
| ref | No | Element ref from snapshot (preferred) | |
| name | No | ||
| role | No | ||
| text | No | ||
| exact | No | ||
| label | No | ||
| pageId | No | ||
| testId | No | ||
| within | No | Scope to a unique container (ref, role+name, label, testId or CSS selector) | |
| session | No | ||
| maxChars | No | ||
| selector | No | CSS (last resort) | |
| placeholder | No |