Open execution session
execution_session_openUse this when opening a session on the explicitly selected device/workspace. Pass expectDeviceName with the PC name the user gave; a mismatch opens nothing. Returns the authenticated account, the device ID and name, the session envelope, and optional startup context. Include startup {path, taskId?} to receive project policy, Git state and owned task continuation in this same call. Discover workspace IDs first only when unknown. Startup is one metered project read; without startup this opens only the session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| startup | No | Explicitly read project startup context in this call: project path and optional owned task ID. Returns policy, Git and bounded task continuation; each startup read is metered. | |
| deviceId | Yes | Selected deviceId; use workspace_list when unknown | |
| projectTarget | No | Explicit project/environment target; immutable for this session. Paths become relative to its repository root. Use project_target_resolve first. | |
| expectDeviceName | No | The PC name the user gave for this work (its Windows computer name, as workspace_list deviceName shows it). If the selected device has another name, no session is opened. | |
| workspaceGrantId | Yes | Selected approved workspaceGrantId |