Skip to main content
Glama

notes_create_note

Create new notes with title and content on macOS, organizing them into folders for efficient information management.

Instructions

Create new note with title and content

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYesNote title
contentYesNote content/body
folderNoTarget folder name (optional, defaults to "Notes")

Implementation Reference

  • The handler case for 'notes_create_note' that validates input parameters (title, content, optional folder), constructs and executes an osascript AppleScript command to create a new note in the specified Notes folder, and returns success or error message.
    case 'notes_create_note': try { const title = (args?.title as string) || ''; const content = (args?.content as string) || ''; const folder = (args?.folder as string) || 'Notes'; if (!title || !content) { return { content: [ { type: 'text', text: 'Error: title and content are required', }, ], }; } const command = `osascript -e 'on run argv set noteTitle to item 1 of argv set noteContent to item 2 of argv set targetFolderName to item 3 of argv tell application "Notes" set targetFolder to folder targetFolderName set newNote to make new note in targetFolder with properties {name:noteTitle, body:noteContent} return "Note created: " & name of newNote & " in folder: " & name of targetFolder end tell end run' -- "${title}" "${content}" "${folder}"`; const { stdout, stderr } = await execAsync(command); if (stderr.trim()) { return { content: [ { type: 'text', text: `Error creating note: ${stderr.trim()}`, }, ], }; } return { content: [ { type: 'text', text: stdout.trim(), }, ], }; } catch (error: any) { return { content: [ { type: 'text', text: `Error executing note creation command: ${error.message}`, }, ], }; }
  • src/index.ts:176-196 (registration)
    Registration of the 'notes_create_note' tool in the ListTools response, including name, description, and input schema definition.
    { name: 'notes_create_note', description: 'Create new note with title and content', inputSchema: { type: 'object', properties: { title: { type: 'string', description: 'Note title', }, content: { type: 'string', description: 'Note content/body', }, folder: { type: 'string', description: 'Target folder name (optional, defaults to "Notes")', }, }, required: ['title', 'content'], },
  • Input schema for the notes_create_note tool defining parameters title (required string), content (required string), and optional folder (string).
    inputSchema: { type: 'object', properties: { title: { type: 'string', description: 'Note title', }, content: { type: 'string', description: 'Note content/body', }, folder: { type: 'string', description: 'Target folder name (optional, defaults to "Notes")', }, }, required: ['title', 'content'], },

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/samicokar/mcp-mac'

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