create_session
- create_session( height?: integer, session_name?: string, start_directory?: string, width?: integer, window_name?: string, )
-
Creates a detached session whose first pane runs the configured process. Start a pane’s configured process; accepts no command payload.
- MCP request method
tools/callSendcreate_sessionas the tool name, with the arguments below.- Wraps
io.github.libtmux.Server.Server.newSessionThe library call this tool makes:libtmux-mcp/src/main/java/io/github/libtmux/mcp/Operations.java:315.
Arguments
-
Initial height; supply with width. Defaults to -1.
-
A literal session name.
-
An absolute literal start directory.
-
Initial width; supply with height. Defaults to -1.
-
A literal first-window name.
No other arguments are accepted.
Result
Returns object
No other properties are accepted.
Annotations
Advertised by the server
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalsetitle"Create a session"
Capability
- Toolset
- Execute Start or drive pane processes, or store state that can control later execution.
- Process reach
configured-process- tmux effects
observechange
Every Java 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": {"height": {"default": -1,"description": "Initial height; supply with width. Defaults to -1.","type": "integer"},"session_name": {"description": "A literal session name.","type": "string"},"start_directory": {"description": "An absolute literal start directory.","type": "string"},"width": {"default": -1,"description": "Initial width; supply with height. Defaults to -1.","type": "integer"},"window_name": {"description": "A literal first-window name.","type": "string"}},"required": [],"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"}