Structured Output
structuredGenerate JSON output matching a given JSON Schema for data extraction or classification tasks.
Instructions
Generate a JSON response conforming to a provided JSON Schema. Use for data extraction, classification, or any task needing machine-parseable output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | File paths to include as context (text only, no images). Supports line ranges: 'path:start-end' (e.g. 'src/lib.rs:900-950'). | |
| model | No | Model to use (e.g. o3, gpt-4.1) | |
| prompt | Yes | What to generate or extract | |
| schema | Yes | JSON Schema the response must conform to (as a JSON string) | |
| timeout | No | Timeout in milliseconds (default: 60000) | |
| workingDirectory | No | Working directory for file paths |