get_page_text
Extract visible text from the current web page. Use saveTo to write the full untruncated content to a file, with optional inline preview.
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. |