pmux_create_tab
Creates a new tab in a specified workspace, supporting terminal, claude-code, codex-cli, agent-sessions, web-browser, or diff panel types.
Instructions
Create a tab in a workspace. panelType is one of terminal | claude-code | codex-cli | agent-sessions | web-browser | diff (default terminal); invalid → 400 with validPanelTypes. WARNING: claude-code/codex-cli panelType creates a UI panel, NOT a managed agent session — the pane may be an empty shell before the UI attaches, and sending prompts into it is unreliable. To run a subagent, use pmux_agent_start instead (it launches the CLI in a terminal tab under full protocol control). Creating claude-code/codex-cli without the CLI installed → 409 with suggestedCommand. Returns the created-tab object.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional display name for the tab. | |
| panelType | No | One of terminal | claude-code | codex-cli | agent-sessions | web-browser | diff. Defaults to terminal. | |
| workspaceId | Yes | Target workspace id (from pmux_list_workspaces). |