get_dom
Retrieve a summarized DOM tree with tag names, IDs, classes, and text content to debug React applications.
Instructions
Get a summarized DOM tree. Returns tag names, IDs, classes, and text content in a digestible format.
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_dom"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Maximum depth to traverse (default: 6) | |
| selector | No | CSS selector for root element (default: body) |