extract
Fetch any URL and extract structured fields that match a caller-supplied JSON schema using an LLM, working on any site. Provide a JSON schema to get typed data back from arbitrary web pages.
Instructions
Fetch a URL and extract structured fields matching a caller-supplied
JSON schema, using an LLM — works on ANY site, not just ones with a
dedicated recipe. Use list_recipes first if you suspect a faster,
higher-confidence deterministic recipe already exists for this site.
Args:
url: The URL to extract structured data from.
json_schema: A JSON Schema (as a JSON string) describing the fields
to extract, e.g. '{"type":"object","properties":{"price":
{"type":"number"},"title":{"type":"string"}}}'.
instructions: Optional extra guidance for the extraction model.
Requires ANTHROPIC_API_KEY to be set in the environment — this tool
will return a diagnosable failure (not a crash) if it isn't.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| json_schema | Yes | ||
| instructions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |