Skip to documentation
Docs navigation
Docs/getActiveNodes()
MemoGrafterAgent

getActiveNodes()

Read active topic nodes for the current session.

What it does

Read active topic nodes for the current session.

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

Signature

TypeScript
getActiveNodes(options?: TagFilterOptions): Promise<TopicNode[]>

Parameters

options? (TagFilterOptions) — Optional limits, filters, tags, or operation-specific behavior.

Result

The topic nodes created, selected, or copied by the operation.

Example

example.ts
const topics = await agent.getActiveNodes({ tags: ["project:a"] });