onda_terminal_spawn
Spawns a binary in an existing terminal pane, preserving arguments verbatim. Launch agents like claude in a workspace pane with a structured prompt.
Instructions
Spawn a binary inside an EXISTING pane by writing exec bin args... into its PTY. Preserves multi-line/quoted argv elements verbatim (each one becomes a single execve argv entry after shell quoting). Use this to launch claude (or any agent) with a structured prompt inside a workspace pane created via onda_workspace_add_terminal. Either paneId or workspaceId is required; if workspaceId, the first terminal pane in that workspace is used.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bin | Yes | PATH-resolvable or absolute binary (e.g., "claude"). | |
| args | No | Arguments passed verbatim. Each element is one argv entry; embedded newlines/quotes are preserved. | |
| paneId | No | Target pane ID (preferred). | |
| workspaceId | No | Workspace ID — use when paneId is not known. |