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

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

All Java tools · JSON · Source

Arguments

height optional · integer
Initial height; supply with width. Defaults to -1.

Default: -1.

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. Defaults to -1.

Default: -1.

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": {
"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"
}
Tool annotations
{
"destructiveHint": true,
"idempotentHint": false,
"openWorldHint": true,
"readOnlyHint": false,
"title": "Create a session"
}
Esc

Type to search.