Send To Visible Claude Code TUI
companion_tui_sendSend a prompt to a persistent Claude Code TUI session and return a tmux attach command to monitor execution.
Instructions
Paste a prompt into the persistent native Claude Code TUI and press Enter. Returns immediately with the tmux attach command.
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. | |
| prompt | Yes | Task or follow-up for Claude Code. It is pasted into the visible Claude Code CLI. | |
| 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. |