# pane_index

Source: https://libtmux.org/en/tmux/3.2a/catalog/formats/pane_index/

> Index of pane

format variable tmux3.2a

Index of pane

* Scope

  Describes the pane being formatted

* Type

  Text

* Short form

  `#P`

* Usage

  `#{pane_index}`

## Description[#](https://libtmux.org/en/tmux/3.2a/catalog/formats/pane_index/#description)

Index of pane

## Releases[#](https://libtmux.org/en/tmux/3.2a/catalog/formats/pane_index/#releases)

* [tmux 3.7c](https://libtmux.org/en/tmux/3.7c/catalog/formats/pane_index/) : present
* [tmux 3.2a](https://libtmux.org/en/tmux/3.2a/catalog/formats/pane_index/) : present

## Source[#](https://libtmux.org/en/tmux/3.2a/catalog/formats/pane_index/#source)

* Defined in

  [`format.c:2744`](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format.c#L2744)

* C source reference

  [`format_cb_pane_index`](https://libtmux.org/en/tmux/3.2a/reference/c-function-format-c-format_cb_pane_index/)

* CLI Manual

  [Original manual entry](https://libtmux.org/en/tmux/3.2a/manual/full/#pane_index)

## Used by[#](https://libtmux.org/en/tmux/3.2a/catalog/formats/pane_index/#used-by)

Library documentation that names this format variable.

* Python

  [`libtmux_mcp.tools.pane_tools.respawn_pane`](https://libtmux.org/en/py/latest/mcp/reference/libtmux_mcp-tools-pane_tools-respawn_pane/)

* Go

  [`tmux.FormatValues.PaneIndex`](https://libtmux.org/en/go/latest/reference/tmux-formatvalues-paneindex/)
