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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "find_unused_attachments"
}
}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. |