save-markdown-template
Store a named Markdown template so note exports can reuse it by name; validates input and blocks invalid or duplicate names unless replacement is forced.
Instructions
Use when: storing a template so export-notes-markdown can use it by name. Returns: name, path, bytes and whether an existing template was replaced. Do not use when: exporting once (pass templateFile to export-notes-markdown instead). Safety: writes one file in the template library only (APPLE_NOTES_MCP_TEMPLATE_DIR, default ~/Library/Application Support/apple-notes-mcp/templates, mode 0600). Validates first; an invalid template is refused with every JSON path. Create-only: an existing name is refused with [template-exists] unless force is true. Built-in names are reserved. templateFile follows the same read scope as validate-markdown-template.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "save-markdown-template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name to save under: lowercase a-z, 0-9, "-" and "_", starting with a letter or digit | |
| force | No | Replace an existing saved template of this name (default false: create-only) | |
| template | No | The template itself, as a JSON object or JSON text (schemaVersion 1) | |
| templateFile | No | Absolute path of a JSON template file ending in .json (home, a temp dir, or /Volumes; hidden paths and ~/Library outside iCloud Drive and CloudStorage refused unless the server sets APPLE_NOTES_MCP_ALLOW_PRIVATE_CONTENT_PATHS=1; symlinks refused; at most 256 KiB) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||