# komrad hook post-tool-use-failure

Record that an agent's tool call failed

[komrad hook](https://komrad.dev/latest/cli/hook.md)

```bash
komrad hook post-tool-use-failure
```

Claude runs this in place of its PostToolUse hook when a tool call fails, which takes the tool back off the agent's row.

## Inherited flags

| Flag | Type | Description |
| --- | --- | --- |
| [`--config`](https://komrad.dev/latest/cli/hook/post-tool-use-failure.md#inherited-config) | stringArray | path to a config TOML, repeatable, later files win over earlier ones |
| [`--engine`](https://komrad.dev/latest/cli/hook/post-tool-use-failure.md#inherited-engine) | string | engine to reach: local for this machine, or a file in the config's engines directory, layered over the config |
