Returned data structures
Session view
ts
interface SessionView {
sessionId: string;
name?: string;
status: 'creating' | 'ready' | 'closing' | 'closed' | 'failed';
createdAt: string;
lastActivityAt: string;
metadata: Record<string, string>;
restoredFromStateId?: string;
contextSettings: BrowserContextSettings;
}Page view
ts
interface PageView {
pageId: string;
sessionId: string;
createdAt: string;
url: string;
isDefault: boolean;
}Saved state view
Contains only stateId and createdAt. Storage-state contents are never returned by list/save results.
Operation correlation
Every accepted operation produces an opaque operationId. Use it to correlate safe logs and results; do not derive ordering or identity from its format.
Snapshot result
Snapshot results include:
snapshotand honestcontentFormat(aria-yamloraria-yaml-fragment);partialand optional short-livedrefs;appliedBounds;omissionsfor tree controls/source limits;paginationwith optionalsnapshotId,nextCursor, offset, and expiry;- character/byte
truncationcounts.
Observation page
Observation list results include events, nullable nextCursor, droppedCount, and gap. An overflowed ring buffer can create a gap; consumers must not assume lossless telemetry.
See contracts.ts for the executable output schemas.