create_session
-
Create a detached session; names and path data are literalized before tmux expansion. Start a pane’s configured process; accepts no command payload.
- MCP request method
tools/callSendcreate_sessionas the tool name, with the arguments below.- Wraps
libtmux::Server::new_sessionThe library call this tool makes:apps/mcp/src/tool_catalog.cpp:2578.
Arguments
-
Optional detached height.
- minimum
1- maximum
100000
-
Optional literal unique session name.
- maxLength
512
-
Literal pane start directory.
- maxLength
4096
-
Optional detached width.
- minimum
1- maximum
100000
-
windowName? (string)Optional literal first window name.
- maxLength
512
No other arguments are accepted.
Result
Returns object
-
- pattern
"^\\$[0-9]+$"
No other properties are accepted.
Annotations
Advertised by the server
destructiveHinttrueidempotentHintfalseopenWorldHinttruereadOnlyHintfalsetitle"Create a tmux 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 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": {"height": {"description": "Optional detached height.","maximum": 100000,"minimum": 1,"type": "integer"},"name": {"description": "Optional literal unique session name.","maxLength": 512,"type": "string"},"startDirectory": {"description": "Literal pane start directory.","maxLength": 4096,"type": "string"},"width": {"description": "Optional detached width.","maximum": 100000,"minimum": 1,"type": "integer"},"windowName": {"description": "Optional literal first window name.","maxLength": 512,"type": "string"}},"required": [],"type": "object"}Output schema
{"additionalProperties": false,"properties": {"name": {"type": "string"},"session_id": {"pattern": "^\\$[0-9]+$","type": "string"}},"required": ["name","session_id"],"type": "object"}