rename_session
-
Change tmux state; no client-supplied executable input. Rename a tmux session. Its id does not change, so anything holding one still works.
- MCP request method
tools/callSendrename_sessionas the tool name, with the arguments below.- Wraps
LibTmux.Session.RenameAsyncThe library call this tool makes:src/LibTmux.Mcp/Tools/WriteTools.Layout.cs:280.
Arguments
-
The new session name.
-
session? =null(string | null)A session id or name. Omit for the first session.
No other arguments are accepted.
Result
Returns object
Annotations
Advertised by the server
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalsetitle"Rename session"
Capability
- Toolset
- Manage Change tmux structure or presentation.
- Process reach
none- tmux effects
changeobserve
Every C# 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": {"name": {"description": "The new session name.","type": "string"},"session": {"default": null,"description": "A session id or name. Omit for the first session.","type": ["string","null"]}},"required": ["name"],"type": "object"}Output schema
{"properties": {"changed": {"type": "string"},"paneId": {"default": null,"type": ["string","null"]},"sessionId": {"default": null,"type": ["string","null"]},"windowId": {"default": null,"type": ["string","null"]}},"required": ["changed"],"type": "object"}