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 50 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 detached session and return it with its first window and pane, so you can start working without listing anything first.

Execute
get_server_info

The tmux server this process drives: its socket, version, daemon pid, and totals, and the oldest tmux release this server drives.

Inspect
list_sessions

Every session on this server with its id, name, window count, and whether anyone is attached.

Inspect

Session5 tools2 tools1 tool1 tool1 tool

create_window

Add a window to a session and return it with its pane.

Execute
get_session_info

Return metadata for one session without listing every session.

Inspect
kill_session

Remove a session.

Teardown
list_windows

Windows on this server, optionally restricted to one session by id or name.

Inspect
rename_session

Rename a session.

Manage

Window9 tools2 tools5 tools1 tool1 tool

get_window_info

Return metadata and placements for one window.

Inspect
kill_window

Close a window and every pane in it.

Teardown
list_panes

Panes on this server, with the command each is running and its directory.

Inspect
move_window

Move a window to another index, or into another session.

Manage
rename_window

Rename a window.

Manage
resize_window

Set a window’s size in cells.

Manage
select_layout

Rearrange a window’s panes using a named layout, a unique abbreviation for the running daemon, or a checksummed saved layout from a window whose metadataComplete is true.

Manage
select_window

Make a window the current one in its session.

Manage
split_window

Split a pane and return the new one.

Execute

Pane18 tools6 tools4 tools6 tools2 tools

capture_pane

The text a pane is showing, or its scrollback.

Inspect
capture_since

What a pane has printed since you last looked.

Inspect
clear_pane_scrollback

Discard the retained scrollback history for one pane.

Teardown
find_pane_by_position

Find the pane occupying a named corner of a window.

Inspect
get_pane_info

One pane’s metadata: what it runs, where, how big, and whether it is yours or watched.

Inspect
kill_pane

Close a pane and the process in it.

Teardown
paste_text

Put text into a pane without tmux interpreting any of it as key names.

Execute
resize_pane

Resize a pane, either to a size or by an amount in a direction.

Manage
respawn_pane

Restart a pane’s command in place, keeping the pane and its id.

Execute
run_shell_command

Run a shell command in a pane with your user’s permissions.

Execute
search_panes

Find which panes are showing something.

Inspect
select_pane

Make a pane the active one in its window.

Manage
send_keys

Send keystrokes to a pane.

Execute
send_keys_batch

Send an ordered batch of pane-input operations, resolving and checking each row’s configured cohort immediately before input.

Execute
set_pane_title

Give a pane a title.

Manage
set_synchronize_panes

Set the window default for synchronized pane input.

Execute
snapshot_pane

Return bounded terminal content and pane metadata in one MCP response.

Inspect
swap_pane

Exchange two panes’ positions.

Manage

Hooks1 tool1 tool

show_hooks

Read the hooks a server or session runs.

Inspect

Options and environment4 tools2 tools2 tools

set_history_limit

Set the default retained scrollback line limit through a bounded integer.

Manage
set_mouse_enabled

Set the global tmux mouse option through a closed boolean schema.

Manage
show_environment

Read the tmux environment.

Inspect
show_option

Read one named tmux option at server, session, window, or pane scope.

Inspect

Coordination2 tools2 tools

signal_channel

Signal a tmux wait-for channel.

Manage
wait_for_channel

Wait until a tmux wait-for channel is signalled.

Manage

Other tools8 tools5 tools3 tools

call_read_tools_batch

Invoke a serial batch of at most 16 inspect tools.

Inspect
get_tmux_variables

Resolve validated tmux variable names without accepting raw format syntax.

Inspect
read_program

Read what a started program printed after cursor, waiting up to timeoutMs for new output or its end, and report whether it has ended and how.

Inspect
run_program

Run a program in a new pane of its own with your user’s permissions.

Execute
start_program

Run a program in a new pane of its own with your user’s permissions.

Execute
stop_program

End a started program and remove its pane now: SIGTERM, then SIGKILL two seconds later.

Execute
wait_for_exit

Wait until the program in a pane exits and return its exit status or signal.

Inspect
wait_for_text

Wait until a pane prints something, streaming tmux’s notifications rather than polling.

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-ts@85c9eef48976.

The language API reference documents embedding and implementation types.

Esc
Search in

Type to search.

Reference previewOpen reference