# X_UI_INTERACT_STEPS_INVALID

## Means

a `ui.interact` step list is over its bounds or malformed

## Typical cause

more than 12 steps, a `wait` over 5000 ms or negative, a `type.text` over 500 chars, an empty selector or text, a step with zero or two keys, or a key that is no verb. Refused WHOLE and never trimmed: a step dropped changes what the picture is of, and an agent judging that picture would judge the wrong scene. The MCP schema (`anyOf` over five one-key shapes) catches the shapes first; the count and the lengths are the handler's, because the validator enforces no `maxItems`

## Fix

`x help shot --json`, then resend `ui.interact` with at most 12 one-key steps, `type.text` under 500 chars and `wait` under 5000 ms

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