A view of a tool's RESPONSE (PostToolUse) — the matching primitive a react hook reasons over (e.g. capture/notify only when a command FAILED). The author never parses the raw payload shape.
Readonly
The response as text (an object payload is JSON-stringified).
True iff the response text contains needle.
needle
True iff the tool reported a failure — a truthy error/is_error field on a structured payload, or a leading Error/error: line on a text one.
error
is_error
Error
error:
A view of a tool's RESPONSE (PostToolUse) — the matching primitive a react hook reasons over (e.g. capture/notify only when a command FAILED). The author never parses the raw payload shape.