get_page_text
Extracts visible page text for scraping or inspection, caps inline output, and saves full untruncated text to a file when needed.
Instructions
Get the visible text of the page (document.body.innerText). Caps at maxLength (default 20000 chars); saveTo saves the full text to a file.
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_page_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| saveTo | No | Save the full untruncated text to a file instead of returning it inline. Pass a file path, an existing directory (generated file inside), or true (generated file under ~/.firefox-mcp/output/). Relative paths resolve against the current working directory. | |
| preview | No | Number of characters of the saved text to return inline as a preview when saveTo is used. Omit for no preview. | |
| maxLength | No | Max characters to return inline (default: 20000). Ignored when saveTo is used. |