Skip to main content
Glama
laszlopere

mcp-tmux

by laszlopere

tmux_respawn_window

Restart a tmux window's command in place, optionally force-restarting a live window with custom command, directory, and environment variables.

Instructions

Restart the command in a window (respawn-window), reusing it in place.

Like tmux_respawn_pane but for a whole window (its single/first pane). By default tmux only respawns a window whose command has exited; set kill=True (-k) to force-restart a live one. command defaults to the window's original command; start_directory sets its cwd (-c). env (-e KEY=VAL, tmux 3.0+) injects environment variables; ignored with a note on older tmux.

Returns {"respawned": True, "window": window}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
windowYes
commandNo
killNo
start_directoryNo
envNo
targetNo
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description fully bears responsibility. It discloses default behavior, force-kill option, command default, directory setting, environment injection behavior (with tmux version note), and return format. Comprehensive disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Highly concise with no wasted words. Front-loaded with purpose, then parameter details. Structured logically from default behavior to overrides.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 6 parameters, 1 required, and no output schema, description covers behavior, parameters, return value, and version constraints. Missing 'target' parameter and could clarify return format with more detail, but overall sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so description must compensate. It explains 5 of 6 parameters (window implied, command, kill, start_directory, env) but misses 'target'. Adds significant meaning beyond schema defaults.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description uses specific verb 'Restart the command' and resource 'window (respawn-window)', and clearly distinguishes from sibling 'tmux_respawn_pane' by noting it applies to the whole window (single/first pane).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides clear context: default behavior only for exited commands, force restart with kill=True, defaults for command and start_directory, and environment handling caveat. However, does not explicitly compare to alternatives or provide when-not-to-use guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/laszlopere/mcp-tmux'

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