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 47 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

Creates a detached session whose first pane runs the configured process.

Execute
get_server_info

Reports whether the pinned server exists and its version.

Inspect
list_sessions

Lists sessions on the pinned tmux server.

Inspect

Session5 tools2 tools1 tool1 tool1 tool

create_window

Creates a window whose first pane runs the configured process.

Execute
get_session_info

Returns metadata for one session.

Inspect
kill_session

Deletes one session and every window and pane in it.

Teardown
list_windows

Lists windows, optionally only those in one named session.

Inspect
rename_session

Replaces a session’s name.

Manage

Window9 tools2 tools5 tools1 tool1 tool

get_window_info

Returns metadata for one window.

Inspect
kill_window

Deletes one window and every pane in it.

Teardown
list_panes

Lists pane metadata and stable pane IDs.

Inspect
move_window

Moves a window to another session, optionally at an index.

Manage
rename_window

Replaces a window’s name.

Manage
resize_window

Sets a window’s width, height, or both.

Manage
select_layout

Applies a named layout, a unique abbreviation for the running tmux version, or a saved layout from get_window_info.

Manage
select_window

Makes one window active.

Manage
split_window

Creates a pane whose configured process starts after the split.

Execute

Pane20 tools6 tools6 tools6 tools2 tools

break_pane

Moves a pane into a new window of its own session, keeping its process.

Manage
capture_pane

Returns bounded pane content and a cursor.

Inspect
capture_since

Returns pane output produced after a cursor.

Inspect
clear_pane_scrollback

Deletes retained scrollback from one pane.

Teardown
find_pane_by_position

Finds a pane at one of a window’s four corners.

Inspect
get_pane_info

Returns metadata for one pane.

Inspect
kill_pane

Deletes one pane and ends its process.

Teardown
move_pane

Moves a pane beside another pane or into another window, keeping its process and id, even for the caller’s pane.

Manage
paste_text

Pastes literal text only to its target.

Execute
resize_pane

Sets a pane’s width, height, or both.

Manage
respawn_pane

Kills the pane’s current process and starts its configured process again.

Execute
run_shell_command

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

Execute
search_panes

Searches the visible output of every pane.

Inspect
select_pane

Makes one pane active.

Manage
send_keys

Sends keys to a pane and to every pane synchronize-panes links it with.

Execute
send_keys_batch

Sends up to sixty-four key sequences in order, rechecking before each one which panes synchronize-panes links to its target.

Execute
set_pane_title

Replaces a pane’s literal title.

Manage
set_synchronize_panes

Sets the window synchronization default (synchronize-panes).

Execute
snapshot_pane

Returns pane metadata and bounded terminal content together.

Inspect
swap_pane

Swaps the positions of two panes.

Manage

Hooks1 tool1 tool

show_hooks

Reads configured tmux hooks.

Inspect

Options and environment4 tools2 tools2 tools

set_history_limit

Sets a bounded integer scrollback limit for future panes in a session.

Manage
set_mouse_enabled

Enables or disables tmux mouse handling.

Manage
show_environment

Read the tmux environment.

Inspect
show_option

Reads one named tmux option.

Inspect

Coordination2 tools2 tools

signal_channel

Signals one server-wide tmux channel.

Manage
wait_for_channel

Waits on tmux’s channel state with a bounded timeout.

Manage

Other tools3 tools3 tools

call_read_tools_batch

Calls up to sixteen eligible inspect tools serially.

Inspect
get_tmux_variables

Reads a capped list of validated tmux variable names, not free-form formats.

Inspect
wait_for_text

Waits for new pane output without accepting executable input.

Inspect

Resources

2 advertised in the reference configuration.

Resource templates

4 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: libtmux/libtmux-go@6fec1b8e18ca.

The language API reference documents embedding and implementation types.

Esc
Search in

Type to search.

Reference previewOpen reference