browser_inspect_dom
Extract HTML content from web pages for inspection and analysis. Use CSS selectors to target specific elements and retrieve their DOM structure.
Instructions
Get DOM HTML content from the page.
Args:
session: Name of the browser session
selector: Optional CSS selector to get specific element's HTML
Returns:
HTML content (truncated if over 100KB)
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": {
"session": "<session>"
},
"name": "browser_inspect_dom"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | Yes | ||
| selector | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |