discover_selectors
Find CSS selectors for web page elements by matching their text against target keywords, returning candidate selectors with short samples to support precise data extraction.
Instructions
Fetches a web page and finds CSS selectors for elements whose text matches the given keywords. The model describes what it is looking for with keywords; the server returns candidate selectors with short samples, without the full page entering the context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| targets | Yes | What to look for: a name plus keywords matched case-insensitively against element text | |
| max_candidates | No | Maximum number of candidate selectors returned per target |