# X_LLM_OUTPUT_INVALID

## Means

structured output failed its schema on the answer and on the repair turn

## Typical cause

the model would not produce the shape

## Fix

describe the shape in the prompt template and bump its version, or widen `output` in the `llm()` declaration

[MCP and AI](/error-codes#mcp-and-ai)
