MCPpre-alphaTools

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

In development Server behavior and tool contracts may change. Tool availability depends on the server configuration.

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 54 tools. Your server’s available objects depend on its configuration. Setup documentation explains how to connect a client.

Tier

Server5 tools3 tools1 tool1 tool

create_session

Create a new tmux session.

Execute
get_server_info

Get information about the tmux server.

Inspect
kill_server

Kill the tmux server and all its sessions.

Teardown
list_servers

Discover live tmux servers under the current user’s $TMUX_TMPDIR.

Inspect
list_sessions

List tmux sessions (terminal workspaces) on a tmux server.

Inspect

Session5 tools2 tools1 tool1 tool1 tool

create_window

Create a new window in a tmux session.

Execute
get_session_info

Return metadata for a single tmux session (ID, name, window count, activity).

Inspect
kill_session

Kill a tmux session.

Teardown
list_windows

List tmux windows (terminal tabs) in a session, or across the server.

Inspect
rename_session

Rename a tmux session.

Manage

Window9 tools2 tools5 tools1 tool1 tool

get_window_info

Return metadata for a single tmux window (ID, name, layout, dimensions).

Inspect
kill_window

Kill (close) a tmux window.

Teardown
list_panes

List tmux panes (terminal multiplexer splits) in a window, session, or server.

Inspect
move_window

Move a window to a different index or session.

Manage
rename_window

Rename a tmux window.

Manage
resize_window

Resize a tmux window.

Manage
select_layout

Set the layout of a tmux window.

Manage
select_window

Select (focus) a tmux window by ID, index, or direction.

Manage
split_window

Split a tmux window to create a new pane.

Execute

Pane18 tools6 tools4 tools6 tools2 tools

capture_pane

Capture the visible contents of a tmux pane (terminal scrollback).

Inspect
capture_since

Capture new tmux terminal scrollback since the previous cursor.

Inspect
clear_pane

Clear the contents of a tmux pane.

Teardown
find_pane_by_position

Find the pane occupying a corner of a tmux window.

Inspect
get_pane_info

Get detailed information about a tmux pane.

Inspect
kill_pane

Kill (close) a tmux pane.

Teardown
paste_text

Paste multi-line text into a pane using tmux paste buffers.

Execute
pipe_pane

Log a pane’s live output to a file (or stop an active log).

Execute
resize_pane

Resize a tmux pane.

Manage
respawn_pane

Restart a pane’s process in place, preserving pane_id and layout.

Execute
run_command

Run a shell command in a pane, wait for completion, and capture output.

Execute
search_panes

Search visible terminal text across all tmux panes.

Inspect
select_pane

Select (focus) a tmux pane by ID or direction.

Manage
send_keys

Send keys (commands or text) to a tmux pane.

Execute
send_keys_batch

Send an ordered batch of raw key/text operations to tmux panes.

Execute
set_pane_title

Set the title of a tmux pane.

Manage
snapshot_pane

Snapshot a tmux pane: visible terminal output, cursor, mode, scroll.

Inspect
swap_pane

Swap the positions of two panes.

Manage

Buffers4 tools1 tool1 tool1 tool1 tool

delete_buffer

Delete an MCP-owned buffer.

Teardown
load_buffer

Load text into a new agent-namespaced tmux paste buffer.

Manage
paste_buffer

Paste an MCP-owned buffer into a pane.

Execute
show_buffer

Read back the contents of an MCP-owned buffer.

Inspect

Hooks2 tools2 tools

show_hook

Look up a specific tmux hook by name.

Inspect
show_hooks

List configured tmux hooks at the given scope.

Inspect

Options and environment4 tools2 tools2 tools

set_environment

Set a tmux environment variable.

Execute
set_option

Set a tmux option value.

Execute
show_environment

Show tmux environment variables.

Inspect
show_option

Show a tmux option value.

Inspect

Coordination2 tools2 tools

signal_channel

Signal a tmux wait-for channel, waking blocked waiters.

Manage
wait_for_channel

Block until a tmux wait-for channel is signalled.

Manage

Other tools5 tools3 tools2 tools

call_read_tools_batch

Call several inspect tools serially and return per-tool results.

Inspect
display_message

Read tmux variables against a target and return the substituted text.

Inspect
enter_copy_mode

Enter copy mode in a tmux pane, optionally scrolling up.

Manage
exit_copy_mode

Exit copy mode in a tmux pane.

Manage
wait_for_text

Wait for NEW output in a tmux pane, then return.

Inspect

Resources

This server does not advertise resources in the reference configuration.

Resource templates

6 advertised in the reference configuration.

Prompts

4 advertised in the reference configuration.

Reference configuration
LIBTMUX_TOOLSETS
inspect,manage,execute,teardown

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

Source: tmux-python/libtmux-mcp@4daddc0dfca9.

The language API reference documents embedding and implementation types.

Esc
Search in

Type to search.

Reference previewOpen reference