Skip to documentation
Docs navigation
Docs/getGraphSnapshot()
MemoGrafterAgent

getGraphSnapshot()

Read a complete inspection snapshot of the current graph.

What it does

Read a complete inspection snapshot of the current graph.

The operation is scoped to the agent’s current session, so callers do not pass a session identifier on every call.

Signature

TypeScript
getGraphSnapshot(): Promise<GraphSnapshot>

Result

A read-only snapshot of topics, memories, edges, segments, and graft provenance for inspection.

Example

example.ts
const snapshot = await agent.getGraphSnapshot();