Skip to main content
Glama

notes_list

List all Apple Notes or filter by folder to organize and access your notes directly from macOS applications.

Instructions

[Apple Notes operations] List all notes or notes in a specific folder

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
folderNoOptional folder name to list notes from

Implementation Reference

  • Handler function that generates AppleScript code to list all notes or notes in a specific folder in Apple Notes.app.
    script: (args) => { const { folder = "" } = args; if (folder) { return ` tell application "Notes" set folderList to folders whose name is "${folder}" if length of folderList > 0 then set targetFolder to item 1 of folderList set noteNames to name of notes of targetFolder return noteNames as string else return "Folder not found: ${folder}" end if end tell `; } else { return ` tell application "Notes" set noteNames to name of notes return noteNames as string end tell `; } },
  • Input schema defining optional 'folder' parameter for listing notes from a specific folder.
    schema: { type: "object", properties: { folder: { type: "string", description: "Optional folder name to list notes from" } } }
  • Registers the 'notes_list' tool by constructing the name from category 'notes' and script 'list', along with description and schema.
    this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: this.categories.flatMap((category) => category.scripts.map((script) => ({ name: `${category.name}_${script.name}`, // Changed from dot to underscore description: `[${category.description}] ${script.description}`, inputSchema: script.schema || { type: "object", properties: {}, }, })), ), }));
  • src/index.ts:35-35 (registration)
    Registers the notes category containing the 'list' script, which becomes the 'notes_list' tool.
    server.addCategory(notesCategory);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/joshrutkowski/applescript-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server