MCPAPI Reference

Choose documentation 3

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

create_session

Start a pane’s configured process; accepts no command payload. Creates a detached session whose first pane runs the configured process.

All Go tools · JSON · Source

Arguments

height optional · integer
initial height; supply with width
session_name optional · string
a literal session name
start_directory optional · string
an absolute literal start directory
width optional · integer
initial width; supply with height
window_name optional · string
a literal first-window name

Schemas

The schema defines required fields, nested values, defaults, and validation constraints.

Input schema
{
"additionalProperties": false,
"properties": {
"height": {
"description": "initial height; supply with width",
"type": "integer"
},
"session_name": {
"description": "a literal session name",
"type": "string"
},
"start_directory": {
"description": "an absolute literal start directory",
"type": "string"
},
"width": {
"description": "initial width; supply with height",
"type": "integer"
},
"window_name": {
"description": "a literal first-window name",
"type": "string"
}
},
"type": "object"
}
Output schema
{
"additionalProperties": false,
"properties": {
"sessionId": {
"type": "string"
},
"sessionName": {
"type": "string"
}
},
"required": [
"sessionId",
"sessionName"
],
"type": "object"
}
Tool annotations
{
"destructiveHint": true,
"openWorldHint": true,
"title": "Create a session"
}
Esc

Type to search.