get_html
Retrieve cleaned body HTML from a browser tab, or outerHTML of the first element matching a CSS selector, with optional character truncation.
Instructions
Get HTML source. Without selector: cleaned body HTML. With selector: outerHTML of the first match.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | No | ||
| maxChars | No | Truncate to this many chars (default 40000) | |
| selector | No |