# `tab:get_pane_direction(direction)`

{{since('20230320-124340-559cb7b0')}}

Returns pane adjacent to the active pane in *tab* in the direction *direction*.

Valid values for *direction* are:

* `"Left"`
* `"Right"`
* `"Up"`
* `"Down"`
* `"Prev"`
* `"Next"`

See [ActivatePaneDirection](../keyassignment/ActivatePaneDirection.md) for more information
about how panes are selected given direction.

