extract_fields
Pull named fields from unstructured text into a JSON object; missing fields return null instead of guesses.
Instructions
Pull named fields out of unstructured text into a JSON object.
Args: text: The source text. fields: Map of field name -> description of what it is, e.g. {"invoice_total": "the total amount including tax", "due_date": "the payment due date in ISO format"}.
Fields not present in the text come back as null rather than a guess.
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>",
"fields": "<fields>"
},
"name": "extract_fields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| fields | Yes |