structured_extract
Extract structured JSON data from unstructured text using Grok. Provide text and schema hint to get parsed output.
Instructions
Grok: extract JSON from text (15 credits).
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": {
"api_key": "<api_key>",
"text": "<text>",
"schema_hint": "<schema_hint>"
},
"name": "structured_extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| api_key | Yes | ||
| schema_hint | Yes |