# `PtcRunner.ToolExecutionError`
[🔗](https://github.com/andreasronge/ptc_runner/blob/main/lib/ptc_runner/lisp/tool_execution_error.ex#L1)

Exception raised when a tool execution fails.

Carries the eval context so that tool calls can be properly recorded in traces
even when the tool fails.

## Fields

- `message`: Error message from the tool
- `eval_ctx`: The evaluation context at time of failure (contains recorded tool_calls)
- `tool_name`: Name of the tool that failed

---

*Consult [api-reference.md](api-reference.md) for complete listing*
