claude_generate_json
Generate structured JSON responses from prompts with built-in validation and retry logic for reliable AI output formatting.
Instructions
Generate JSON response with validation and retry
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Prompt to pass to Claude CLI | |
| model | No | Model to use (haiku, sonnet, opus). Default: haiku | |
| maxRetries | No | Maximum retry attempts for JSON validation. Default: 3 | |
| jsonSchema | No | JSON Schema to validate output against | |
| systemPrompt | No | Replace default system prompt | |
| appendSystemPrompt | No | Append to default system prompt |