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.
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": {
"url": "<url>",
"selector": "<selector>"
},
"name": "css_query"
}
}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 |