css_query
Fetch a web page and extract only the content matching a given CSS selector, returning just the relevant parts to reduce token usage and avoid processing irrelevant data.
Instructions
Fetch a page and return only the content matching a CSS selector.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | Cache TTL in seconds (default 1800) | |
| url | Yes | URL to fetch | |
| selector | Yes | CSS selector to extract (e.g. '#pricing-table', '.product-description', 'article') | |
| max_chars | No | Maximum characters in output | |
| use_cache | No | Return cached response if available (default True) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |