Start Session
exec_startStarts a process as a persistent session and returns a session ID immediately, so you can manage long-running commands that stream output or read stdin.
Instructions
Start a process as a session; returns session_id at once. Use when it outlives the call, streams output or reads stdin (exec_write). Then exec_poll, exec_wait, exec_kill, exec_close. Sessions persist across requests; finished ones are reaped after the session TTL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Child working directory; omit to inherit. | |
| argv | Yes | Program and arguments, e.g. ["python3", "-i"]. Passed verbatim. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| pid | No | ||
| error | No | ||
| session_id | No |