terminal_spawn
Create named terminal sessions with optional working directory and startup command. Choose interactive, background, or resume modes to control permissions and autonomy for concurrent Claude sessions.
Instructions
Spawn a new named terminal session. Optionally start it in a specific directory and/or run a command immediately.
Use 'mode' to control how Claude sessions run:
"interactive" (default): Normal foreground session with permission prompts.
"background": Auto-allows safe tools (Bash, Edit, Read, Write, Glob, Grep, Agent) but blocks destructive git commands (force push, reset --hard, branch -D, clean -f) and rm -rf. Best when you want autonomous work with guardrails.
"resume": Resume an existing Claude session by name with the same background safety guardrails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory to start in | |
| mode | No | Session mode: 'interactive' (default), 'background' (skip permissions), 'resume' (resume existing session) | |
| name | Yes | Name for this terminal (e.g. 'backend', 'tests', 'server') | |
| shell | No | Shell to use (default: $SHELL) | |
| command | No | Command to run immediately after spawning (e.g. 'npm run dev') |