Get text
browser_get_textExtracts visible text from the current page or a specified element so you can inspect content without parsing raw HTML.
Instructions
Return the visible text of the page or of an element.
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 |
|---|---|---|---|
| ref | No | Element ref from browser_snapshot, e.g. "e12" | |
| maxChars | No | Default 30000 | |
| selector | No | Playwright selector (CSS, text=..., role=..., xpath=...) used when no ref is given |