# mcp.tools.error.ToolError.into_error_data

- **Module:** mcp.tools.error.ToolError
- **Package:** tmux-mcp
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/tmux-mcp/src/tools/error.rs#L35
- **Page:** https://libtmux.org/en/rs/latest/mcp/reference/mcp-tools-error-toolerror-into_error_data/

This type appears in public signatures. It is not a package entry point.

```
mcp.tools.error.ToolError.into_error_data(self) -> ErrorData
```

Recover the underlying [`ErrorData`].

For the one caller that reports a nested tool's own failure inside a
batch item rather than as this tool's failure
([`crate::TmuxTools::call_read_tools_batch`]), and for a
test that calls a tool directly and inspects the classification a
wire client would otherwise read from `isError` content.
