Exit copy mode

exit_copy_mode

exit_copy_mode
mutating tool

Exit copy mode in a tmux pane.

Returns:

PaneInfo

Use when you’re done scrolling through scrollback and want the pane to resume receiving output.

Side effects: Exits copy mode, returning the pane to normal.

Example:

{
  "tool": "exit_copy_mode",
  "arguments": {
    "pane_id": "%0"
  }
}

Response:

{
  "pane_id": "%0",
  "pane_index": "0",
  "pane_width": "80",
  "pane_height": "24",
  "pane_current_command": "zsh",
  "pane_current_path": "/home/user/myproject",
  "pane_pid": "12345",
  "pane_title": "",
  "pane_active": "1",
  "window_id": "@0",
  "session_id": "$0",
  "is_caller": false
}

Parameters

Parameter

Type

Required

Default

Description

pane_id

str

no

Pane ID (e.g. ‘%1’).

session_name

str

no

Session name for pane resolution.

session_id

str

no

Session ID for pane resolution.

window_id

str

no

Window ID for pane resolution.

socket_name

str

no

tmux socket name.