structure
structureTurn any text into JSON that matches YOUR JSON Schema: a large model extracts the fields, we validate the result against the schema and retry with the errors, so you get schema-valid output (or the exact remaining errors). Text up to 16,000 characters. Costs $0.025 USDC per call (x402).
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": {
"text": "<text>",
"schema": "<schema>"
},
"name": "structure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| schema | Yes | ||
| instructions | No |