Tools

Targeted tmux tools accept an optional socket_name parameter for multi-server support. It defaults to the LIBTMUX_SOCKET env var. list_servers discovers sockets itself, and batch tools leave socket selection inside each nested tool’s arguments. See Configuration.

Which tool do I want?

Reading terminal content?

Targeting a pane by layout?

Running a command?

Creating workspace structure?

Navigating?

Rearranging layout?

Scrollback / copy mode?

Coordinating across panes?

Batching typed tool calls?

Staging multi-line input?

Auditing tmux hooks?

Changing settings?

Reaching for a workflow recipe? The server also ships four short MCP prompts the client renders for the model — see Prompts. They cover the most common patterns (run-and-wait, diagnose-failing-pane, build-dev-workspace, interrupt-gracefully) with embedded UUID-scoped wait channels and shell-agnostic guidance.

Inspect readonly

Read tmux state without changing anything.

list_sessions

List all active sessions.

list_sessions
list_windows

List windows in a session.

list_windows
list_panes

List panes in a window.

list_panes
capture_pane

Read visible content of a pane.

capture_pane
capture_since

Start a cursor, then read only new pane output.

capture_since
get_pane_info

Get detailed pane metadata.

get_pane_info
get_session_info

Get detailed session metadata.

get_session_info
get_window_info

Get detailed window metadata.

get_window_info
find_pane_by_position

Resolve “the bottom-right pane” (or any corner) to a PaneInfo.

find_pane_by_position
search_panes

Search text across panes.

search_panes
wait_for_text

Wait for text to appear in a pane.

wait_for_text
get_server_info

Get tmux server info.

get_server_info
call_readonly_tools_batch

Call typed readonly tools in order.

call_readonly_tools_batch
list_servers

Discover live tmux servers under $TMUX_TMPDIR.

list_servers
show_option

Query a tmux option value.

show_option
show_environment

Show tmux environment variables.

show_environment
snapshot_pane

Rich capture: content + cursor + mode + scroll.

snapshot_pane
wait_for_content_change

Wait for any screen change.

wait_for_content_change
display_message

Query arbitrary tmux format strings.

display_message
show_buffer

Read back an MCP-staged paste buffer.

show_buffer
show_hooks

Enumerate configured tmux hooks at a scope.

show_hooks
show_hook

Inspect a single tmux hook by name.

show_hook

Act mutating

Create or modify tmux objects.

create_session

Start a new tmux session.

create_session
create_window

Add a window to a session.

create_window
split_window

Split a window into panes.

split_window
send_keys

Send raw keystrokes to a pane.

send_keys
send_keys_batch

Send several ordered raw-input operations.

send_keys_batch
run_command

Run a shell command and report exit status.

run_command
call_mutating_tools_batch

Call typed readonly or mutating tools in order.

call_mutating_tools_batch
rename_session

Rename a session.

rename_session
rename_window

Rename a window.

rename_window
resize_pane

Adjust pane dimensions.

resize_pane
resize_window

Adjust window dimensions.

resize_window
select_layout

Set window layout.

select_layout
set_pane_title

Set pane title.

set_pane_title
clear_pane

Clear pane content.

clear_pane
respawn_pane

Restart a pane’s process, keeping its pane_id.

respawn_pane
set_option

Set a tmux option.

set_option
set_environment

Set a tmux environment variable.

set_environment
select_pane

Focus a pane by ID or direction.

select_pane
select_window

Focus a window by ID, index, or direction.

select_window
swap_pane

Exchange positions of two panes.

swap_pane
move_window

Move window to another index or session.

move_window
pipe_pane

Stream pane output to a file.

pipe_pane
enter_copy_mode

Enter copy mode for scrollback.

enter_copy_mode
exit_copy_mode

Exit copy mode.

exit_copy_mode
paste_text

Paste multi-line text via tmux buffer.

paste_text
load_buffer

Stage multi-line text into an MCP-namespaced tmux buffer.

load_buffer
paste_buffer

Paste an MCP buffer into a target pane.

paste_buffer
wait_for_channel

Block until a tmux wait-for channel is signalled.

wait_for_channel
signal_channel

Wake clients blocked on a wait-for channel.

signal_channel

Destroy destructive

Tear down tmux objects. Not reversible.

kill_session

Destroy a session and all its windows.

kill_session
kill_window

Destroy a window and all its panes.

kill_window
kill_pane

Destroy a pane.

kill_pane
kill_server

Kill the entire tmux server.

kill_server
call_destructive_tools_batch

Call typed tools including destructive steps.

call_destructive_tools_batch
delete_buffer

Delete an MCP-staged tmux paste buffer.

delete_buffer