browser_text
Extract visible page text from a chosen tab or frame, limit output length, and target a CSS selector or strip nav/header/footer/aside to reduce clutter.
Instructions
Read visible innerText. Pass main_only=true (strips nav/header/footer/aside) or selector='' to avoid clutter.
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_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Max chars (default 6000). | |
| tab | No | Tab index string (e.g. '0'), targetId, or URL/title substring. | |
| frame | No | Iframe #fN, id, URL substring, or 'any'. | |
| selector | No | Container CSS selector (pierces shadow roots). | |
| main_only | No | Strip nav/header/footer/aside clutter. |