Page text
get_text_contentExtracts a page's visible text without HTML markup, paginated by character offset. Use it to read or scrape page copy, with a diagnosis returned when the result is empty.
Instructions
Get the page's visible text, without any HTML markup.
Use for reading or extracting page copy. Text hidden by CSS is excluded, and no selectors are returned, so use get_interaction_tree if you intend to interact. Same pagination contract as get_content. An empty result carries a diagnosis saying whether the page is still loading, has no body, keeps its text in iframes or shadow roots, or really is blank. Returns one page of text plus the offset to continue from.
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_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | Tab id from list_tabs or new_tab to act on, instead of the active tab. The active tab does not change. Omit to use the active tab. Example: 'tab_2' | |
| offset | No | Character offset to start from, for paging through long text. Example: 0 | |
| max_chars | No | Maximum characters of text to return in this call. Pass a larger value or page with offset to read more. Example: 10000 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | One past the last character of this slice. | |
| text | Yes | The slice itself. | |
| total | Yes | Length of the whole text. | |
| offset | Yes | First character of this slice. | |
| summary | Yes | One line saying what happened. | |
| diagnosis | No | Only on an empty result: why the page has no visible text, and what to do. | |
| next_offset | No | Offset to request next; absent on the last slice. |