Find Unused Attachments
find_unused_attachmentsLocates attachments that no note references through embeds or markdown links, helping identify files for cleanup before archiving or syncing.
Instructions
Locate attachments that no note references — neither via ![[file]] embeds nor [text](file) markdown links. Useful for vault hygiene before archiving or before running a sync. Pair the output with delete operations from your shell, since this tool deliberately doesn't unlink files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of unused-attachment paths to return (1-10000, default: 200). Total counts are still reported. | |
| includeBytes | No | If true, also stat each unused attachment and report total reclaimable bytes. |