Skip to main content
Glama

notes_createRawHtml

Generate Apple Notes directly from raw HTML content by specifying a title and formatted HTML, enabling automated note creation within macOS.

Instructions

[Apple Notes operations] Create a new note with direct HTML content

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
htmlYesRaw HTML content for the note
titleYesTitle of the note

Implementation Reference

  • Handler function that destructures title and html from args, escapes double quotes in HTML content, and generates AppleScript to create a new note in the Apple Notes application with the specified title and raw HTML body.
    script: (args) => { const { title = "New Note", html = "" } = args; return ` tell application "Notes" make new note with properties {body:"${html.replace(/"/g, '\\"')}", name:"${title}"} end tell `;
  • Input schema validating the tool parameters: title (optional string) and required html (string for raw HTML content).
    schema: { type: "object", properties: { title: { type: "string", description: "Title of the note" }, html: { type: "string", description: "Raw HTML content for the note" } }, required: ["title", "html"] }
  • src/index.ts:35-35 (registration)
    Registration of the notesCategory (containing the createRawHtml script) to the MCP server via addCategory method. The tool is exposed as 'notes_createRawHtml' due to framework prefixing.
    server.addCategory(notesCategory);
  • Framework code that constructs the full tool name by prefixing category name with underscore and script name, resulting in 'notes_createRawHtml' for listing tools.
    name: `${category.name}_${script.name}`, // Changed from dot to underscore

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