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

getSharedSessionId()

Read the fleet shared-memory session ID.

What it does

Read the fleet shared-memory session ID.

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

Signature

TypeScript
getSharedSessionId(): string

Result

The requested identifier or text value.

Example

example.ts
const id = fleet.getSharedSessionId();