web_extract_schema
Extract structured web data by matching a JSON Schema—no CSS selectors or LLM key required—and return an object with per-field sources and explicit missing fields.
Instructions
Extract data matching a JSON Schema without writing selectors.
Pass the shape you want and get back an object; no CSS rules, no LLM key. Each field is resolved from the best available source, tried in this order:
json-ld- the page's own structured data, so nothing is guessedmeta- OpenGraph / Twitter cardssemantic-html- h1, , itemprop, and a few class-name hints
The response records sources per field, so a caller can tell a stated value from an
inferred one, and lists missing fields explicitly rather than leaving silent nulls.
Use web_extract instead when you already know the page's selectors: it is exact,
whereas this infers. A field whose structure this has never seen comes back null -
it will not invent a plausible value.
schema is JSON: {"type": "object", "properties": {"price": {"type": "number"}}}.
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>",
"schema": "<schema>"
},
"name": "web_extract_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| schema | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |