query_debug
Diagnose why a CSS selector didn't match, returning matched counts, sample matches, DOM summaries, and actionable hints for selector errors, thin shells, or embedded JSON.
Instructions
Diagnose why a CSS selector did or did not match. Returns matched_count, sample matches, DOM summary counts, selector hints (top tags/classes/data attrs/ids), and actionable hints for selector_miss, thin_shell, or embedded_json. Use this when query() returns [] and you need to distinguish a bad selector from an empty/browser-rendered DOM.
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": {
"selector": "<selector>"
},
"name": "query_debug"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max sample matches to return (default 10, max 50) | |
| selector | Yes | CSS selector to test |