get_page_text
Extract the visible text content from the current Firefox page, with options to truncate output or save the full text to a file.
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.
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-devtools-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. |