content_get_text
Extracts rendered text from a Firefox tab's main document, returning readable page content with optional max_length truncation and ellipsis.
Instructions
Read the current page body's rendered text (document.body.innerText).
Use this for readable page content, or content_get_html for markup. Reads the main document without changing it; does not include iframe documents or wait for future lazy-loaded content. Restricted Firefox pages that block content scripts cannot be read.
max_length slices the extracted text by character count and adds an ellipsis when truncated; omission returns all extracted text.
profile_id is required: obtain it from profiles_list. All object IDs are local to that profile; never reuse them in another profile.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | Yes | ID of the tab to get content from | |
| max_length | No | Optional maximum length of text to return (default: unlimited) | |
| profile_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |