MCPconceptTools

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

Concept example A working example of the core library. It can change without notice. What concept means

Tools

Browse the operations the server exposes to MCP clients. Use the registered name and arguments when sending a tools/call request.

The reference configuration advertises 45 tools. Your server’s available objects depend on its configuration. Setup documentation explains how to connect a client.

Tier

Server3 tools2 tools1 tool

create_session

Create a new detached tmux session.

Execute
get_server_info

Report every session with its windows and panes, in one call.

Inspect
list_sessions

List every tmux session on the server.

Inspect

Session5 tools2 tools1 tool1 tool1 tool

create_window

Create a window running its configured process.

Execute
get_session_info

Return metadata for one session.

Inspect
kill_session

Kill a tmux session and everything in it.

Teardown
list_windows

List every window on the server.

Inspect
rename_session

Rename one session.

Manage

Window9 tools2 tools5 tools1 tool1 tool

get_window_info

Return metadata for one window.

Inspect
kill_window

Kill a window, closing it in every session that links it.

Teardown
list_panes

List every pane on the server.

Inspect
move_window

Move one window to a session and index.

Manage
rename_window

Rename one window.

Manage
resize_window

Resize one window to exact cell dimensions.

Manage
select_layout

Rearrange a window’s panes using a saved tmux layout or a named layout and its unique abbreviation.

Manage
select_window

Select a window, making it its session’s active window.

Manage
split_window

Split a window and start the configured process with no command payload.

Execute

Pane18 tools6 tools4 tools6 tools2 tools

capture_pane

Read a pane’s contents.

Inspect
capture_since

Read what a pane wrote since the previous call.

Inspect
clear_pane_scrollback

Discard a pane’s retained scrollback.

Teardown
find_pane_by_position

Find the pane touching a named window corner.

Inspect
get_pane_info

Return metadata for one pane.

Inspect
kill_pane

Kill a pane.

Teardown
paste_text

Put text into a pane through a tmux paste buffer instead of typing it key by key.

Execute
resize_pane

Move one edge of a pane by a number of rows or columns.

Manage
respawn_pane

Restart a pane’s configured process with no command payload.

Execute
run_shell_command

Run a shell command in a pane, wait for it to finish, and report its exit status with retained output.

Execute
search_panes

Search what panes are displaying with Rust’s linear-time regex engine.

Inspect
select_pane

Select a pane, making it its window’s active pane.

Manage
send_keys

Type text into a pane, press named keys in it, or both.

Execute
send_keys_batch

Send an ordered batch of input operations to panes.

Execute
set_pane_title

Set one pane’s title.

Manage
set_synchronize_panes

Set the window default for synchronized pane input.

Execute
snapshot_pane

Read pane content with cursor position, mode state, and scroll position in one reply.

Inspect
swap_pane

Swap the positions of two panes.

Manage

Hooks1 tool1 tool

show_hooks

List the hooks tmux runs when something happens on the server, such as a pane exiting.

Inspect

Options and environment4 tools2 tools1 tool1 tool

set_history_limit

Set the scrollback history limit for a session or its global default.

Teardown
set_mouse_enabled

Set mouse handling for a session or the global session default.

Manage
show_environment

List the variables tmux hands to processes it starts, for the server or for one session, and whether each is set or marked for removal.

Inspect
show_option

Read a tmux option, such as history-limit or a user option like @theme.

Inspect

Coordination2 tools2 tools

signal_channel

Signal a tmux wait-for channel, releasing every current waiter.

Manage
wait_for_channel

Block until something signals a tmux wait-for channel.

Manage

Other tools3 tools3 tools

call_read_tools_batch

Call a serial batch of at most sixteen enabled inspect tools.

Inspect
get_tmux_variables

Read a bounded set of tmux variables against one pane.

Inspect
wait_for_text

Wait until a pane writes matching text.

Inspect

Resources

1 advertised in the reference configuration.

Resource templates

This server does not advertise resource templates in the reference configuration.

Prompts

This server does not advertise prompts in the reference configuration.

Reference configuration
LIBTMUX_TOOLSETS
inspect,manage,execute,teardown

Protocol version: 2025-11-25. Download the full protocol catalog.

Source: libtmux/libtmux-rs@6a256a08d97d.

The language API reference documents embedding and implementation types.

Esc
Search in

Type to search.

Reference previewOpen reference