rename_session
Replaces a session’s name. Change tmux state; no client-supplied executable input.
All Java tools · JSON · Source
Arguments
new_namerequired · string- The literal new session name.
session_idrequired · string- The session ID, such as $1.
Schemas
The schema defines required fields, nested values, defaults, and validation constraints.
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": { "attached": { "type": "boolean" }, "id": { "type": "string" }, "name": { "type": "string" }, "windows": { "type": "integer" } }, "required": [ "id", "name", "attached", "windows" ], "type": "object"}Tool annotations
{ "destructiveHint": true, "idempotentHint": false, "openWorldHint": true, "readOnlyHint": false, "title": "Rename a session"}