--json-schema

Claude Code

Definition

A Claude Code CLI flag used with --output-format json to provide a JSON Schema file that Claude's output must conform to. Guarantees the CLI output matches the expected structure, making it safe to parse in automated pipelines without defensive error handling.

Example Usage

Pass --json-schema ./review-schema.json to ensure every PR review follows the exact format your CI dashboard expects.