Capture pane output
captureRead the last lines of a tmux session pane, optionally preserving ANSI escapes, to inspect recent terminal output without modifying the session.
Instructions
Return the last lines of a session pane, with optional ANSI escapes. Read-only. Defaults to the owned session "mcp" if it exists.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "capture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ansi | No | Preserve ANSI escape sequences | |
| lines | No | Maximum lines (default: 200) | |
| session | No | Target session (default: owned session "mcp") |