Structured extraction
get_extractUse when an agent needs named fields from a page or PDF. Returns JSON for a schema of up to 20 fields (string, number, boolean, date, string[]), with null for anything the document does not state, never an invented value. Costs 0.025 USDC per call (x402, USDC on Solana, Base, Polygon, Arbitrum or Arc).
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": "get_extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | the page or PDF: an absolute http or https URL | |
| schema | Yes | JSON object of field name to type, e.g. {"title":"string","price":"number","released":"date"}; up to 20 fields and 2 KB |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | the get_extract payload; a real captured example is free at https://x402.ochinimus.app/api/sample/get_extract | |
| tool | Yes | the tool that produced this payload |