# snapshot_pane

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

> Read pane output; accepts no client-supplied executable input. Returned content may be sensitive or untrusted. Return pane metadata and bounded terminal content together.

MCP is in development

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

Read pane output; accepts no client-supplied executable input. Returned content may be sensitive or untrusted. Return pane metadata and bounded terminal content together.

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

## Arguments

* `maxLines` optional · integer

  Caller-controlled maxLines.

* `paneId` required · string

  Caller-controlled paneId.

## Schemas

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

Input schema

```json
{
  "additionalProperties": false,
  "properties": {
    "maxLines": {
      "description": "Caller-controlled maxLines.",
      "maximum": 2000,
      "minimum": 1,
      "type": "integer"
    },
    "paneId": {
      "description": "Caller-controlled paneId.",
      "type": "string"
    }
  },
  "required": [
    "paneId"
  ],
  "type": "object"
}
```

Output schema

```json
{
  "additionalProperties": false,
  "properties": {
    "capture": {
      "additionalProperties": false,
      "properties": {
        "droppedLines": {
          "type": "integer"
        },
        "lines": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "paneId": {
          "type": "string"
        }
      },
      "required": [
        "droppedLines",
        "lines",
        "paneId"
      ],
      "type": "object"
    },
    "pane": {
      "additionalProperties": false,
      "properties": {
        "currentCommand": {
          "type": "string"
        },
        "currentPath": {
          "type": "string"
        },
        "height": {
          "type": "integer"
        },
        "id": {
          "type": "string"
        },
        "index": {
          "type": "integer"
        },
        "isActive": {
          "type": "boolean"
        },
        "isAtBottom": {
          "type": "boolean"
        },
        "isAtLeft": {
          "type": "boolean"
        },
        "isAtRight": {
          "type": "boolean"
        },
        "isAtTop": {
          "type": "boolean"
        },
        "isDead": {
          "type": "boolean"
        },
        "isSynchronized": {
          "type": "boolean"
        },
        "modeCount": {
          "type": "integer"
        },
        "ref": {
          "type": "string"
        },
        "width": {
          "type": "integer"
        },
        "windowID": {
          "type": "string"
        }
      },
      "required": [
        "currentCommand",
        "currentPath",
        "height",
        "id",
        "index",
        "isActive",
        "isAtBottom",
        "isAtLeft",
        "isAtRight",
        "isAtTop",
        "isDead",
        "isSynchronized",
        "modeCount",
        "ref",
        "width",
        "windowID"
      ],
      "type": "object"
    }
  },
  "required": [
    "capture",
    "pane"
  ],
  "type": "object"
}
```

Tool annotations

```json
{
  "destructiveHint": true,
  "idempotentHint": false,
  "openWorldHint": true,
  "readOnlyHint": false,
  "title": "Snapshot pane"
}
```
