session_bootstrap
Initialize a session for the current computer: resume an active session with its last 5 events, or create a new session with context from recent memory.
Instructions
Stage 1: Find or create a session for the current computer.
Checks for an active session (same computer, last active within 2 hours).
If found: resumes it and returns the last 5 events.
If not: creates a new session and seeds context from recent memory.
Args:
client: Which Claude client is calling ('code'|'chat'|'cowork'|'dashboard').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| client | No | code |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |