# libtmux_mcp.prompts.recipes.diagnose_failing_pane

- **Module:** libtmux_mcp.prompts.recipes
- **Package:** libtmux-mcp
- **Language:** Python
- **Kind:** function
- **Source:** https://github.com/tmux-python/libtmux-mcp/blob/4daddc0dfca96c43bf521d818bf91564e1434760/src/libtmux_mcp/prompts/recipes.py#L73
- **Page:** https://libtmux.org/en/py/latest/mcp/reference/libtmux_mcp-prompts-recipes-diagnose_failing_pane/

```
libtmux_mcp.prompts.recipes.diagnose_failing_pane(pane_id: str) -> str
```

Gather pane context and propose a root-cause hypothesis.

Uses ``snapshot_pane`` (content + cursor + mode + scroll state
in one call) instead of ``capture_pane`` + ``get_pane_info`` so
the agent sees everything in a single protocol call. When the
diagnosis needs another read after waiting or observing, the
rendered recipe points agents at ``capture_since`` instead of a
repeated full capture.

## Parameters

- `pane_id` (str): The pane to diagnose.
