Skip to main content
Glama

tmux_select_pane

Select a specific pane in a tmux session to activate it for command execution, enabling focused terminal automation and debugging workflows.

Instructions

Select a specific pane in a tmux session to make it active for commands.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_nameYesName of the tmux session
pane_indexYesPane index to select (e.g., '0', '1', '2')

Implementation Reference

  • The main handler function for tmux_select_pane tool. It executes the tmux select-pane command using the provided session_name and pane_index arguments.
    async selectPane(args) { const { session_name, pane_index } = args; try { await execAsync( `tmux select-pane -t "${session_name}:${pane_index}"` ); return { content: [ { type: "text", text: `Selected pane ${pane_index} in session ${session_name}`, }, ], }; } catch (error) { throw new Error(`Failed to select pane: ${error.message}`); } }
  • Input schema definition for the tmux_select_pane tool, specifying session_name and pane_index as required string parameters.
    inputSchema: { type: "object", properties: { session_name: { type: "string", description: "Name of the tmux session", }, pane_index: { type: "string", description: "Pane index to select (e.g., '0', '1', '2')", }, }, required: ["session_name", "pane_index"], },
  • src/index.js:149-167 (registration)
    Tool registration in the ListTools response, including name, description, and input schema.
    { name: "tmux_select_pane", description: "Select a specific pane in a tmux session to make it active for commands.", inputSchema: { type: "object", properties: { session_name: { type: "string", description: "Name of the tmux session", }, pane_index: { type: "string", description: "Pane index to select (e.g., '0', '1', '2')", }, }, required: ["session_name", "pane_index"], }, },
  • src/index.js:203-204 (registration)
    Switch case in CallToolRequestHandler that maps tmux_select_pane to the selectPane method.
    case "tmux_select_pane": return await this.selectPane(args);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MediocreTriumph/tmux-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server