page_content
Retrieve HTML content from a full page or a specific element by CSS selector. Supports inner/outerHTML and boundary markers for AI-driven automation.
Instructions
Get HTML content from page or element.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tabId": "<tabId>"
},
"name": "page_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Tab ID to get content from | |
| selector | No | CSS selector. Omit for full page | |
| outerHTML | No | Return outerHTML vs innerHTML. Default: true | |
| boundaryMarkers | No | Wrap page-origin content in <oc:page>. Default true; false disables. |