debug_get_page_source
Retrieves the current DOM HTML source of a page for debugging, with options to format indentation and include the DOCTYPE declaration.
Instructions
Get the current DOM HTML source for debugging
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": {
"contextId": "<contextId>"
},
"name": "debug_get_page_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pretty | No | Format the HTML with proper indentation | |
| contextId | Yes | Browser context ID from browser_launch | |
| includeDoctype | No | Include the DOCTYPE declaration |