dom
Query page elements by CSS selector on iOS Safari and return tag, text, attributes, position, visibility, outer HTML, or text for inspection and automated testing.
Instructions
Query the DOM by CSS selector. what=info (default: tag, text, attributes, rect in CSS px, visible), html (outerHTML) or text.
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": "dom"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | index in inspector_pages; default the first page with a real address | |
| wait | No | seconds to wait for the page list, default 60 | |
| what | No | ||
| limit | No | ||
| selector | No |