extract_from_api
Idempotent · 30s timeout · Extract structured data from API response JSON with schema adaptation. Pass idempotency_key to deduplicate within 5 minutes.
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": {
"content": "<content>"
},
"name": "extract_from_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | Optional target JSON Schema (draft-07) for field extraction. If omitted, inferred from content structure. Enforces consistent field extraction across multiple API responses. | |
| content | Yes | API response body as raw JSON string (max 200KB). Can be single object, array of objects, or array of primitives. Automatically parsed and validated. | |
| idempotency_key | No | Optional deduplication key (UUID or unique string) for 5-minute cache. Identical calls return cached result instantly. |