# create_session

Source: https://libtmux.org/en/java/latest/mcp/tools/create_session/

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

MCP is in development

Server behavior and tool contracts may change. Tool availability depends on the server configuration.

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

[All Java tools](https://libtmux.org/en/java/latest/mcp/tools/) · [JSON](https://libtmux.org/en/java/latest/mcp/tools/create_session.json) · [Source](https://github.com/libtmux/libtmux-java/blob/f56392b5d9bc7f1f9c1631842333fb90f3d82d40/libtmux-mcp/src/main/java/io/github/libtmux/mcp/ExecuteTools.java#L39)

## 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

```json
{
  "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

```json
{
  "additionalProperties": false,
  "properties": {
    "attached": {
      "type": "boolean"
    },
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "windows": {
      "type": "integer"
    }
  },
  "required": [
    "id",
    "name",
    "attached",
    "windows"
  ],
  "type": "object"
}
```

Tool annotations

```json
{
  "destructiveHint": true,
  "idempotentHint": false,
  "openWorldHint": true,
  "readOnlyHint": false,
  "title": "Create a session"
}
```
