browser_text
Extract visible text from a web page or a CSS-selected element, excluding scripts, styles, and hidden nodes, with an optional character limit and truncation flag.
Instructions
Return the visible text (innerText) of the page or of the first element matching a CSS selector — no script/style bodies, no hidden nodes. Capped at maxChars (default 20000; truncated:true when cut).
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 |
|---|---|---|---|
| maxChars | No | Cap on returned text (default 20000) | |
| selector | No | Optional CSS selector |