get_notes_by_folder
Retrieve all notes from a specific folder in NotePlan using Claude Desktop. Use this tool to organize and access your notes directly from within conversations, enhancing productivity and note management.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | Yes | The folder name to search in |
Implementation Reference
- src/services/noteService.ts:231-234 (handler)Core handler function that loads all notes from cache and filters those matching the given folder exactly or as a prefix (for subfolders).function getNotesByFolder(folder: string): Note[] { const notes = getAllNotes(); return notes.filter(note => note.folder === folder || note.folder.startsWith(folder + '/')); }
- src/index.ts:73-89 (registration)Registers the 'get_notes_by_folder' tool in the MCP server, defining the input schema and the handler that delegates to noteService and formats the JSON response.server.tool( 'get_notes_by_folder', { folder: z.string().describe('The folder name to search in'), }, async ({ folder }) => { const notes = noteService.getNotesByFolder(folder); return { content: [ { type: 'text', text: JSON.stringify(notes, null, 2), }, ], }; } );
- src/index.ts:75-76 (schema)Zod input schema validating the 'folder' parameter as a string.{ folder: z.string().describe('The folder name to search in'),
- src/services/noteService.ts:441-441 (helper)Exports the getNotesByFolder function as part of the noteService object for use by MCP handlers.getNotesByFolder,