extract_from_file
Extract structured JSON from files using your schema and instructions, with grep to narrow large inputs and checks that flag values not found in the source.
Instructions
Structured data from a file, in the JSON schema you give (as a string).
Example: a pin table from a datasheet, the failing tests from a log, the parts of a BOM. Values the file does not give come back as null. grep narrows a large file first. Every extracted string and number is looked up in the file: those that are not there are listed after the data, so an invented value is visible.
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": {
"path": "<path>",
"json_schema": "<json_schema>",
"instructions": "<instructions>"
},
"name": "extract_from_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grep | No | ||
| path | Yes | ||
| json_schema | Yes | ||
| instructions | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |