getNotes
Retrieve structured notes from your personal knowledge base, organizing ideas and learning materials stored in markdown files for efficient access and review.
Instructions
Get notes from the ideas or learning section
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| section | No | Which notes section to retrieve | ideas |
Implementation Reference
- src/core/brain.ts:107-116 (handler)The implementation of the getNotes function in the Brain class.
async getNotes(section: "ideas" | "learning"): Promise<Note[]> { const brainSection: BrainSection = `notes/${section}`; try { const file = await this.sync.readSection(brainSection); return parseNotes(file.content, brainSection); } catch (err) { if (isNotFound(err)) return []; throw err; } } - src/tools/notes.ts:7-20 (registration)Registration of the getNotes tool.
server.registerTool( "getNotes", { description: "Get notes from the ideas or learning section", inputSchema: { section: z .enum(["ideas", "learning"]) .optional() .default("ideas") .describe("Which notes section to retrieve"), }, }, toolHandler("getNotes", async ({ section }) => brain.getNotes(section)) );