rename_session
-
Change tmux state; no client-supplied executable input. Replaces a session’s name.
- MCP request method
tools/callSendrename_sessionas the tool name, with the arguments below.- Wraps
tmux.Session.RenameThe library call this tool makes:mcp/lifecycle_tools.go:215.
Arguments
-
the literal new session name
-
the session id, such as $1
No other arguments are accepted.
Result
Returns object
No other properties are accepted.
Annotations
Advertised by the server
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalsetitle"Rename a session"
Capability
- Toolset
- Manage Change tmux structure or presentation.
- Process reach
none- tmux effects
observechange
Every Go 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": {"new_name": {"description": "the literal new session name","type": "string"},"session_id": {"description": "the session id, such as $1","type": "string"}},"required": ["session_id","new_name"],"type": "object"}Output schema
{"additionalProperties": false,"properties": {"name": {"type": "string"},"sessionId": {"type": "string"}},"required": ["sessionId","name"],"type": "object"}