Open pane
open_paneOpen a new terminal pane in the active tab, optionally running a command directly or via shell, setting working directory, environment, or launching into a saved project. Returns the new pane ID.
Instructions
Open a new pane in the active tab of a window (defaults to the first window). Returns the new paneId. command alone runs through the shell. Pass args (a string array) to run command DIRECTLY as the executable with that exact argv — no shell, no re-parse — which is the reliable way to pass arguments containing spaces or quotes (e.g. command:"claude", args:["--append-system-prompt","…long persona…"]); a single command string with such args gets mangled by the shell. meta attaches free-form org metadata (reserved keys: role/parent/agentType/task) so the new worker is self-describing. project opens the pane in a remembered project (see list_projects/add_project): it defaults the pane's cwd + frame color from that project and bumps its recency in the sidebar rail.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| env | No | ||
| args | No | With `command`: run it directly with this verbatim argv (no shell re-parse). Each element is one argument — do NOT pre-quote. | |
| meta | No | ||
| color | No | ||
| label | No | ||
| shell | No | ||
| command | No | ||
| project | No | open the pane in a remembered project (its id or name; see list_projects): defaults cwd + frame color from the project and bumps its recency. An explicit cwd/color still wins; an unknown handle fails the call. | |
| windowId | No |