content_get_html
Fetch the current HTML markup of a tab's main document (up to 2,000 characters) for parsing or inspection without altering the page.
Instructions
Read the main document's current HTML, limited to 2,000 characters.
Use this for markup, or content_get_text for rendered text. Reads document.documentElement.outerHTML without changing the page; adds an ellipsis if truncated. Does not include iframe documents.
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 HTML content from | |
| profile_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |