Skip to content

feat: add folder parameter to create-note tool#4

Open
jbkjr wants to merge 1 commit intoSiddhant-K-code:mainfrom
jbkjr:feat/folder-support
Open

feat: add folder parameter to create-note tool#4
jbkjr wants to merge 1 commit intoSiddhant-K-code:mainfrom
jbkjr:feat/folder-support

Conversation

@jbkjr
Copy link

@jbkjr jbkjr commented Jan 25, 2026

Summary

  • Add optional folder parameter to create-note tool for saving notes to specific folders
  • Apple Notes folders are flat at the account level in AppleScript, so users specify exact folder name
  • Includes proper escaping for title and folder names with special characters

Test plan

  • Create note without folder parameter (should save to default Notes folder)
  • Create note with folder: "FolderName" (should save to specified folder)
  • Test with folder names containing special characters

🤖 Generated with Claude Code

Allow saving notes to a specific folder by adding an optional `folder`
parameter. Apple Notes folders are flat at the account level in AppleScript,
so users specify the exact folder name (e.g., "Work" or "Personal").

Changes:
- Add `folder?: string` to CreateNoteParams type
- Add `folder` to MCP tool schema with description
- Update createNote() to conditionally wrap note creation in folder block
- Escape title and folder names to handle special characters

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant