export_note
Export an Apple Note to a Markdown file, saving images, scans, and drawings alongside and linking them. Subsequent exports update the same file, keeping it in sync.
Instructions
Write an existing note to a new Markdown file, with its images, scans and drawings written beside it and linked. The one way attachment bytes reach disk. Rewrites a file it wrote before, refuses any other existing file rather than overwriting it. The file is stamped for pull, so later passes keep it up to date.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Note id from list/search results. Wins over name. | |
| dir | No | Folder of .md files to work in. A bare name is a folder inside the vault. Default: the vault itself, from the APPLE_NOTES_MD_DIR environment variable or failing that the open Markdown vault. | |
| file | No | Path for the new file, relative to the root. Default: the note's name, which is what later passes match on. | |
| name | No | Note title. Must match one note; ambiguity returns candidates. | |
| folder | No | Folder name or path to narrow a name lookup. |