Skip to documentation
Docs navigation
Docs/getSessionId()
Fleet Memory

getSessionId()

Read the worker session ID.

What it does

Read the worker session ID.

The operation follows the fleet’s memory mode and agent identity rules when selecting, storing, or transferring memory.

Signature

TypeScript
getSessionId(): string

Result

The requested identifier or text value.

Example

example.ts
const id = worker.getSessionId();