query_debug
Diagnose why a CSS selector fails to match. Get matched count, sample matches, DOM summary, and actionable hints for selector_miss, thin_shell, 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max sample matches to return (default 10, max 50) | |
| selector | Yes | CSS selector to test |