# create_session

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

> Start a pane's configured process; accepts no command payload. Create a detached session with a configured pane process.

MCP is in development

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

Start a pane’s configured process; accepts no command payload. Create a detached session with a configured pane process.

[All Swift tools](https://libtmux.org/en/swift/latest/mcp/tools/) · [JSON](https://libtmux.org/en/swift/latest/mcp/tools/create_session.json) · [Source](https://github.com/libtmux/libtmux-swift/blob/63551afeae8ea3d272e5262208b87735888daf5f/Sources/LibTmuxMCP/ToolOperation.swift#L37)

## Arguments

* `height` optional · integer

  Caller-controlled height.

* `name` required · string

  Caller-controlled name.

* `startDirectory` optional · string

  Caller-controlled startDirectory.

* `width` optional · integer

  Caller-controlled width.

* `windowName` optional · string

  Caller-controlled windowName.

## Schemas

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

Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "height": {
      "description": "Caller-controlled height.",
      "minimum": 1,
      "type": "integer"
    },
    "name": {
      "description": "Caller-controlled name.",
      "type": "string"
    },
    "startDirectory": {
      "description": "Caller-controlled startDirectory.",
      "type": "string"
    },
    "width": {
      "description": "Caller-controlled width.",
      "minimum": 1,
      "type": "integer"
    },
    "windowName": {
      "description": "Caller-controlled windowName.",
      "type": "string"
    }
  },
  "required": [
    "name"
  ],
  "type": "object"
}
```

Output schema

```json
{
  "additionalProperties": false,
  "properties": {
    "createdAt": {
      "type": "integer"
    },
    "id": {
      "type": "string"
    },
    "isAttached": {
      "type": "boolean"
    },
    "name": {
      "type": "string"
    },
    "ref": {
      "type": "string"
    },
    "windowCount": {
      "type": "integer"
    }
  },
  "required": [
    "createdAt",
    "id",
    "isAttached",
    "name",
    "ref",
    "windowCount"
  ],
  "type": "object"
}
```

Tool annotations

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