extract
Convert short text into JSON fields like names, dates, amounts, and IDs using your schema and the offline on-device Apple model.
Instructions
Extract fields from text into JSON matching a JSON Schema, with the on-device model for Apple Foundation Models (free, private, offline). Good for names, dates, amounts and IDs in short documents, emails, logs. Input up to about 3,500 words, as text or path to a text file. Ask only for fields the text likely states: a missing one is often null but may take a wrong value from nearby text. Flat schemas work best; nested ones are unreliable. Allowed keywords: type, properties, required, items, enum, const, description, minItems, maxItems. Not for code or reasoning; check values that matter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Absolute path to a UTF-8 text file to extract from instead of `text`. | |
| text | No | The text to extract from. Up to about 3,500 words. Give this or `path`. | |
| schema | Yes | A JSON Schema for the result. The top level must be an object, for example {"type": "object", "properties": {"invoice": {"type": "string"}, "total": {"type": "number"}}}. | |
| instructions | No | Optional extra guidance, for example "amounts in AUD without the currency sign". |