query_selector_cdp
Fetch a rendered web page through CDP and run CSS or XPath queries on the live DOM snapshot to extract matching elements.
Instructions
Fetch a rendered page through CDP, then run a CSS or XPath query on the live DOM snapshot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| mode | No | css | |
| label | No | ||
| limit | No | ||
| query | Yes | ||
| headers | No | ||
| html_chars | No | ||
| text_chars | No | ||
| ws_endpoint | No | ws://127.0.0.1:9222 | |
| include_html | No | ||
| max_size_bytes | No | ||
| store_document | No | ||
| timeout_seconds | No | ||
| truncate_on_limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| query | Yes | ||
| matches | No | ||
| source_url | No | ||
| total_matches | Yes | ||
| document_handle | No | ||
| omitted_matches | Yes | ||
| returned_matches | Yes |