AI section targeting
Describe the section you want. Vision models find the selector. You get a pixel-perfect crop.
- Natural language
- Confidence metadata
- Selector fallback
- Full-page fallback
AI section targeting
Describe the page section you want and let vision models find the selector.
- Claude
- default vision model
- 0.60
- confidence threshold
What developers actually call
Every capture goes through the same async job model. Submit → poll → result. The SDK wraps the polling loop for you.
1const result = await client.screenshots.webAndWait({
2 url: "https://stripe.com/pricing",
3 description: "the pricing comparison table"
4});From request to result
Capture full page
Playwright loads the target URL and takes a full-page screenshot plus a serialised DOM element map.
Ask the vision model
The image and element map are sent to the configured OpenRouter model with a structured prompt. The model returns a CSS selector and confidence score.
Crop and deliver
If confidence ≥ 0.60, the element is cropped and returned as the primary result. Below threshold, the full-page screenshot is returned as a fallback.
Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
description | string | Required | Natural-language description of the element to find, e.g. 'the pricing comparison table'. |
url | string | Required | Page to capture. Must pass SSRF validation. |
model | string | Optional | OpenRouter model ID. Default: anthropic/claude-opus-4-5. |
fullPage | boolean | Optional | Whether to also include the full-page screenshot in results. |
format | string | Optional | Output image format for the cropped result. |
webhookUrl | string | Optional | Endpoint to receive the completion event with confidence metadata. |
Full parameter reference and response schemas available in the API reference docs.
Who uses this and why
Pricing table extraction
Automatically extract competitor pricing tables across hundreds of pages — no CSS selector maintenance.
Hero section snapshots
Track A/B test variants by targeting the hero section specifically, ignoring nav and footer noise.
Chart and graph crops
Pull specific charts from dashboards, reports, and analytics pages for digest emails or Slack alerts.
Ready to use ai section targeting?
Start on the Free tier with 100 captures per month. No credit card required.