Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
sessionId | string | required | UUID of the session to look up |
options.dir | string | undefined | Project directory path. When omitted, searches all project directories |
Returns SDKSessionInfo, or undefined if the session is not found.
renameSession()
Renames a session by appending a custom-title entry. Repeated calls are safe; the most recent title wins.
typescript
function renameSession(
sessionId: string,
title: string,
options?: SessionMutationOptions
): Promise<void>;