| 1 | { |
| 2 | "description": "tool_call_after for a non-shell tool that failed: no schema-1 document (stdin is empty); the environment carries the result, the failure flag and no exit code.", |
| 3 | "event": "tool_call_after", |
| 4 | "tool": { |
| 5 | "name": "read_file", |
| 6 | "call_id": "call_hook_read", |
| 7 | "outcome": { |
| 8 | "execution_failed": { |
| 9 | "message": "no such file: missing.md" |
| 10 | } |
| 11 | } |
| 12 | }, |
| 13 | "hooks": [ |
| 14 | { |
| 15 | "event": "tool_call_after", |
| 16 | "name": "observer", |
| 17 | "command": "{{capture}} observer" |
| 18 | } |
| 19 | ] |
| 20 | } |
| 21 |