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 session with a configured pane process.

Execute
get_server_info

Return liveness and identity metadata for the selected tmux server.

Inspect
list_sessions

List sessions on the selected server.

Inspect

Session5 tools2 tools1 tool1 tool1 tool

create_window

Create a window with a configured pane process.

Execute
get_session_info

Return metadata for one session.

Inspect
kill_session

Delete one session and every window it owns.

Teardown
list_windows

List windows, optionally within one session.

Inspect
rename_session

Set a literal-safe session name.

Manage

Window9 tools2 tools5 tools1 tool1 tool

get_window_info

Return metadata and placements for one window.

Inspect
kill_window

Delete one window and every pane it owns.

Teardown
list_panes

List panes, optionally within a session or window.

Inspect
move_window

Move one window appearance to another session.

Manage
rename_window

Set a literal-safe window name.

Manage
resize_window

Resize the terminal dimensions reported for one window.

Manage
select_layout

Apply a named layout, a unique abbreviation for the running tmux version, or a checksummed saved layout.

Manage
select_window

Select one exact window appearance.

Manage
split_window

Create a configured-process pane without accepting command or environment data.

Execute

Pane18 tools6 tools4 tools6 tools2 tools

capture_pane

Return a bounded slice of rendered pane text.

Inspect
capture_since

Return output after an opaque pane cursor.

Inspect
clear_pane_scrollback

Irreversibly discard retained scrollback for one pane.

Teardown
find_pane_by_position

Find a pane occupying a named window corner.

Inspect
get_pane_info

Return metadata for one pane.

Inspect
kill_pane

Delete one pane and its running process.

Teardown
paste_text

Paste literal text and an optional newline target-only after two state checks.

Execute
resize_pane

Resize one pane by dimensions or a directional amount.

Manage
respawn_pane

Restart only the pane’s configured process.

Execute
run_shell_command

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

Execute
search_panes

Search bounded pane content for literal text or a regular expression.

Inspect
select_pane

Select one pane as active.

Manage
send_keys

Send keys after checking the effective synchronized-pane cohort.

Execute
send_keys_batch

Send an ordered bounded batch with a fresh check for every row.

Execute
set_pane_title

Set one literal-safe pane title.

Manage
set_synchronize_panes

Set the window input default.

Execute
snapshot_pane

Return pane metadata and bounded terminal content together.

Inspect
swap_pane

Swap two panes without changing their identities.

Manage

Hooks1 tool1 tool

show_hooks

Read configured hooks, optionally for one session.

Inspect

Options and environment4 tools2 tools2 tools

set_history_limit

Set the default retained scrollback line limit.

Manage
set_mouse_enabled

Set the global tmux mouse option through a boolean.

Manage
show_environment

Read the tmux environment.

Inspect
show_option

Read one exact tmux option.

Inspect

Coordination2 tools2 tools

signal_channel

Signal one tmux wait-for channel.

Manage
wait_for_channel

Wait within one deadline for a tmux channel signal.

Manage

Other tools3 tools3 tools

call_read_tools_batch

Invoke a serial batch of at most 16 inspect tools.

Inspect
get_tmux_variables

Resolve validated variable names without accepting raw format syntax.

Inspect
wait_for_text

Wait within one deadline for pane text.

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-swift@094c1e079257.

The language API reference documents embedding and implementation types.

Esc
Search in

Type to search.

Reference previewOpen reference