get_text
Extract visible text from a whole page or a CSS-selected element, excluding hidden text and collapsing whitespace.
Instructions
Return the visible text content of an element (or the whole page if no selector). Whitespace is collapsed; hidden text is excluded.
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": "get_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | CSS selector. Omit to read the whole page. |