Open Visible Claude Code TUI
companion_tui_openLaunch or restore a native Claude Code CLI in tmux for your project, returning the attach command for a side terminal.
Instructions
Create or restore a native Claude Code CLI in tmux for this project. Returns the attach command for the side terminal.
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": "companion_tui_open"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Project working directory. Defaults to the MCP server cwd. | |
| mode | No | SDK backend: read-only denies mutating tools; workspace-write may edit files. TUI backend receives this as visible companion context and still relies on Claude Code CLI/user supervision. | |
| model | No | Optional Claude model override. Omit to use Claude Code defaults. | |
| title | No | Human-readable companion title. | |
| effort | No | Optional Claude effort override. Defaults to high. | |
| backend | No | Companion backend. sdk is the default managed Claude Agent SDK path; tui opens a native Claude Code CLI in tmux. | |
| maxTurns | No | Optional max agent turns for a single send. | |
| claudePath | No | Optional local Claude Code executable path. Defaults to the local `claude` on PATH. | |
| allowedTools | No | Optional auto-allowed Claude Code tools. | |
| maxBudgetUsd | No | Optional SDK USD stop-loss cap for a single Claude turn. Omit for normal Claude Max/subscription workflows unless you explicitly want a hard per-turn cap. | |
| maxRuntimeMs | No | Stop-loss wall clock timeout for a single run. | |
| stallTimeoutMs | No | Stop-loss timeout when no Claude SDK progress events arrive. | |
| disallowedTools | No | Optional tools removed from use. | |
| tmuxSessionName | No | Optional tmux session name for the tui backend. Defaults to a stable project-derived name. | |
| permissionPolicy | No | SDK backend policy: balanced allows local project work and blocks detected out-of-cwd paths; trusted allows all non-disallowed tools; strict allows only allowedTools; bypass uses Claude Code bypassPermissions. TUI bypass starts Claude Code with --dangerously-skip-permissions, but existing TUI panes must be recreated for launch flags to change. |