spawnWorkspace
Initiate a bridge process for a specified workspace directory, returning port and auth token. Optionally wait for extension handshake or spawn code-server.
Instructions
Spawn claude-ide-bridge for a workspace dir. Returns pid/port/authToken once lock appears; optionally waits for extension handshake.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the workspace directory to open | |
| port | No | Port for the spawned bridge (optional; picks a free port if omitted) | |
| timeoutMs | No | Max ms to wait for bridge lock (and extension handshake when waitForExtension=true). Default 30000. | |
| token | No | Fixed auth token for the spawned bridge (optional) | |
| waitForExtension | No | If true, poll /health on the spawned bridge until extensionConnected=true. Shares the timeoutMs budget. | |
| codeServer | No | If true, also spawn `code-server` against the workspace (prereq: installed on PATH with extension pre-loaded). Implicitly enables waitForExtension. | |
| codeServerPort | No | Port for the spawned code-server (default: 8080). Ignored when codeServer=false. | |
| codeServerBin | No | Override code-server binary path (default: 'code-server' on PATH). |