kill_session
- kill_session( session_id?: string | null, session_name?: string | null, socket_name?: string | null, )
-
Kill a tmux session.
Destroys the session and all its windows and panes. Use kill_window to remove a single window instead. Self-kill protection prevents killing the session containing this MCP process.
- MCP request method
tools/callSendkill_sessionas the tool name, with the arguments below.- Wraps
libtmux.Session.killThe library call this tool makes:src/libtmux_mcp/tools/session_tools.py:275.
Arguments
-
session_id? =null(string | null)Session ID (e.g. ‘$1’) to look up.
-
session_name? =null(string | null)Session name to look up.
-
socket_name? =null(string | null)tmux socket name. Defaults to LIBTMUX_SOCKET env var.
No other arguments are accepted.
Result
Returns object
Annotations
Advertised by the server
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalse
Capability
- Toolset
- Teardown Delete tmux objects or retained scrollback. Not reversible.
Every Python tool advertises the same annotations, so a host that approves by annotation cannot tell tools apart. The capability row is what tells them apart.
Protocol data
Use the complete advertised contract for validation and client integration.
Input schema
{"additionalProperties": false,"properties": {"session_id": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "Session ID (e.g. '$1') to look up."},"session_name": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "Session name to look up."},"socket_name": {"anyOf": [{"type": "string"},{"type": "null"}],"default": null,"description": "tmux socket name. Defaults to LIBTMUX_SOCKET env var."}},"type": "object"}Output schema
{"properties": {"result": {"type": "string"}},"required": ["result"],"type": "object","x-fastmcp-wrap-result": true}