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.

This catalog uses POSIX. See platform limits for the Windows preview.

Tier

Server3 tools2 tools1 tool

create_session

Create a detached session.

Execute
get_server_info

Report liveness, tmux version, and the resolved socket when running.

Inspect
list_sessions

List stable session IDs, names, paths, and client counts.

Inspect

Session5 tools2 tools1 tool1 tool1 tool

create_window

Create a detached window.

Execute
get_session_info

Return one session by stable ID or name.

Inspect
kill_session

Delete one session and every window it owns.

Teardown
list_windows

List windows through an exact owning session.

Inspect
rename_session

Replace one session name.

Manage

Window9 tools2 tools5 tools1 tool1 tool

get_window_info

Return one window by stable ID.

Inspect
kill_window

Delete one window and every pane it owns.

Teardown
list_panes

List every pane with stable pane, window, and session IDs.

Inspect
move_window

Move a window to an exact index in its owning session.

Manage
rename_window

Replace one window name.

Manage
resize_window

Replace one window’s dimensions.

Manage
select_layout

Replace the pane layout of one window.

Manage
select_window

Make one window active.

Manage
split_window

Create a configured-process pane.

Execute

Pane18 tools6 tools4 tools6 tools2 tools

capture_pane

Return visible text, or retained history when requested.

Inspect
capture_since

Return bytes after a bounded client cursor and a replacement cursor.

Inspect
clear_pane_scrollback

Irreversibly discard retained scrollback for one pane.

Teardown
find_pane_by_position

Resolve coordinates using fixed tmux layout fields.

Inspect
get_pane_info

Return one pane by stable ID.

Inspect
kill_pane

Delete one pane and its running process.

Teardown
paste_text

Require the target pane to be live and outside human-owned mode, then stage a private target-only buffer, optionally append Enter, paste it once, and verify cleanup.

Execute
resize_pane

Replace one or both pane dimensions.

Manage
respawn_pane

Restart only the pane’s configured process.

Execute
run_shell_command

Require one live configured pane, outside human-owned mode and running a supported POSIX foreground shell, then send one command and return output after its private completion boundary.

Execute
search_panes

Search captured lines using a length-limited expression.

Inspect
select_pane

Make one pane active.

Manage
send_keys

Require every configured synchronized pane to be live and outside human-owned mode, then send one validated tmux key name.

Execute
send_keys_batch

Preflight each row’s configured synchronized pane cohort independently, requiring every pane to be live and outside human-owned mode before its text or key and optional Enter.

Execute
set_pane_title

Replace one pane title.

Manage
set_synchronize_panes

Set the inherited window synchronize-panes default.

Execute
snapshot_pane

Return pane metadata and visible terminal content from one call.

Inspect
swap_pane

Exchange two pane positions without changing their IDs.

Manage

Hooks1 tool1 tool

show_hooks

Read configured hooks, optionally filtered by exact name.

Inspect

Options and environment4 tools2 tools2 tools

set_history_limit

Replace retained-history bounds with a non-negative integer.

Manage
set_mouse_enabled

Replace the global mouse option with a typed boolean.

Manage
show_environment

Read global or session environment values.

Inspect
show_option

Read one exact option without accepting an option value.

Inspect

Coordination2 tools2 tools

signal_channel

Release or latch one named server-side channel.

Manage
wait_for_channel

Wait for a named server-side channel with an optional deadline.

Manage

Other tools3 tools3 tools

call_read_tools_batch

Run up to sixteen declared inspect operations serially under this one call.

Inspect
get_tmux_variables

Expand only validated variable identifiers, never a caller format.

Inspect
wait_for_text

Discount this server’s pending input and recent submitted echoes.

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-cxx@96190e529333.

The language API reference documents embedding and implementation types.

Esc
Search in

Type to search.

Reference previewOpen reference