tsm_extract_json
Extracts structured fields from long text based on a schema, returning a JSON object with extracted data and missing fields. Useful for parsing documents, logs, and issues.
Instructions
Extract structured fields from long text according to a schema description. Returns a JSON object with extracted data and a list of missing fields. Useful for parsing documents, issues, logs.
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_description": "<schema_description>",
"extraction_goal": "<extraction_goal>"
},
"name": "tsm_extract_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Source text to extract data from | |
| extraction_goal | Yes | What extraction goal or use case | |
| schema_description | Yes | Description of the fields to extract |