# swap_pane

Source: https://libtmux.org/en/java/latest/mcp/tools/swap_pane/

> Swaps the positions of two panes. Change tmux state; no client-supplied executable input.

MCP is in development

Server behavior and tool contracts may change. Tool availability depends on the server configuration.

Swaps the positions of two panes. Change tmux state; no client-supplied executable input.

[All Java tools](https://libtmux.org/en/java/latest/mcp/tools/) · [JSON](https://libtmux.org/en/java/latest/mcp/tools/swap_pane.json) · [Source](https://github.com/libtmux/libtmux-java/blob/f56392b5d9bc7f1f9c1631842333fb90f3d82d40/libtmux-mcp/src/main/java/io/github/libtmux/mcp/ManageTools.java#L139)

## Arguments

* `other_pane_id` required · string

  The other pane ID, such as %2.

* `pane_id` required · string

  The pane to act on, such as %1. Every listing tool returns these.

## Schemas

The schema defines required fields, nested values, defaults, and validation constraints.

Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "other_pane_id": {
      "description": "The other pane ID, such as %2.",
      "type": "string"
    },
    "pane_id": {
      "description": "The pane to act on, such as %1. Every listing tool returns these.",
      "type": "string"
    }
  },
  "required": [
    "pane_id",
    "other_pane_id"
  ],
  "type": "object"
}
```

Output schema

```json
{
  "additionalProperties": false,
  "properties": {
    "other_pane_id": {
      "type": "string"
    },
    "pane_id": {
      "type": "string"
    }
  },
  "required": [
    "pane_id",
    "other_pane_id"
  ],
  "type": "object"
}
```

Tool annotations

```json
{
  "destructiveHint": true,
  "idempotentHint": false,
  "openWorldHint": true,
  "readOnlyHint": false,
  "title": "Swap panes"
}
```
