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

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 session, named by ID or by name.

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 tmux layout, a unique abbreviation or a checksummed saved layout.

Manage
select_window

Makes one window active.

Manage
split_window

Creates a pane whose configured process starts after the split.

Execute

Pane18 tools6 tools4 tools6 tools2 tools

capture_pane

Returns what a pane shows now, its newest lines first to go when bounded, and a cursor for capture_since.

Inspect
capture_since

Returns only the output a pane produced after a cursor from capture_pane or an earlier capture_since.

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
paste_text

Pastes one literal text block into one target pane through an ephemeral buffer.

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

Runs one authored command in a trusted pane shell and waits for singular framed output and completion.

Execute
search_panes

Searches the visible output of every pane.

Inspect
select_pane

Makes one pane active.

Manage
send_keys

Sends input to the target’s configured effective synchronized cohort without waiting for output.

Execute
send_keys_batch

Sends up to sixty-four ordered pane-input operations, resolving and guarding the configured effective cohort separately for each ordered operation.

Execute
set_pane_title

Replaces a pane’s literal title.

Manage
set_synchronize_panes

When enabled, sets the inherited window default.

Execute
snapshot_pane

Returns what a pane shows and its metadata, as list_panes describes a pane, in one call.

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

Reads the environment tmux passes to processes.

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

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-java@b2bf31f80015.

The language API reference documents embedding and implementation types.

Esc
Search in

Type to search.

Reference previewOpen reference