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 detached tmux session and return its ids.

Execute
get_server_info

Read the tmux server’s version and how many sessions, windows and panes it holds.

Inspect
list_sessions

List the tmux sessions.

Inspect

Session5 tools2 tools1 tool1 tool1 tool

create_window

Create a window in a tmux session and return its ids.

Execute
get_session_info

Read one session’s name, ID, window count and whether a client is attached, without listing every session.

Inspect
kill_session

Close a session with all its windows and panes.

Teardown
list_windows

List tmux windows, optionally within one session.

Inspect
rename_session

Rename a tmux session.

Manage

Window9 tools2 tools5 tools1 tool1 tool

get_window_info

Read one window’s name, index, size, layout, pane count and whether it is its session’s current window, without listing every window.

Inspect
kill_window

Close a window and every pane in it.

Teardown
list_panes

List tmux panes, optionally within one session or window.

Inspect
move_window

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

Manage
rename_window

Rename a tmux window.

Manage
resize_window

Resize a window to a width and height in cells.

Manage
select_layout

Arrange a window’s panes with a named layout — even-horizontal, even-vertical, main-horizontal, main-vertical, tiled — or a layout string read from list_windows.

Manage
select_window

Make a window the current one in its session.

Manage
split_window

Split a pane and return the NEW pane’s id.

Execute

Pane18 tools6 tools4 tools6 tools2 tools

capture_pane

Read the text a pane is showing, and optionally its scrollback.

Inspect
capture_since

Read only what a pane has printed since the last call.

Inspect
clear_pane_scrollback

Delete a pane’s scrollback history, keeping what the screen shows.

Teardown
find_pane_by_position

Find the pane sitting at an index within a window.

Inspect
get_pane_info

Read one pane’s size, title, running command, working directory, process ID, history size and limit, and whether it is active, dead, zoomed, in a mode or the pane this server runs in.

Inspect
kill_pane

Close a pane and end its program.

Teardown
paste_text

Paste a block of text into exactly one pane through a tmux buffer.

Execute
resize_pane

Resize a pane, or zoom it to fill its window.

Manage
respawn_pane

Only restarts a pane whose command has ALREADY EXITED.

Execute
run_shell_command

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

Execute
search_panes

Find which panes are showing text matching a regular expression.

Inspect
select_pane

Make a pane the active one in its window.

Manage
send_keys

Send raw keystrokes to a pane and return immediately.

Execute
send_keys_batch

Send several keystrokes to one pane in order, in a single call.

Execute
set_pane_title

Set a pane’s title.

Manage
set_synchronize_panes

Turn synchronize-panes on or off for a window.

Execute
snapshot_pane

Read a pane’s visible content together with its cursor position, size and running command, in one call.

Inspect
swap_pane

Swap two panes’ positions.

Manage

Hooks1 tool1 tool

show_hooks

Read the hooks tmux will run on its own events.

Inspect

Options and environment4 tools2 tools2 tools

set_history_limit

Set how many scrollback lines tmux keeps.

Manage
set_mouse_enabled

Turn tmux mouse support on or off.

Manage
show_environment

Read the tmux environment.

Inspect
show_option

Read tmux options at the server, session, window or pane level.

Inspect

Coordination2 tools2 tools

signal_channel

Signal a tmux wait-for channel, releasing whatever waits on it.

Manage
wait_for_channel

Block until something signals a tmux wait-for channel with ‘tmux wait-for -S ’. Use when you composed a shell command that signals it.

Manage

Other tools3 tools3 tools

call_read_tools_batch

Execute up to 16 declared inspect operations serially.

Inspect
get_tmux_variables

Expand named tmux format variables for a pane, such as session_name or window_width.

Inspect
wait_for_text

Wait until a pane prints something matching one of these patterns, then return.

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-dotnet@aff7a75ace43.

The language API reference documents embedding and implementation types.

Esc
Search in

Type to search.

Reference previewOpen reference