Find Orphaned Notes
links.orphanedIdentify notes with no incoming or outgoing links. Use this to clean up disconnected content in your vault.
Instructions
Return every note with zero incoming AND zero outgoing links — i.e., notes that are disconnected from the rest of the vault graph. Useful for cleanup passes. Read-only. Often paired with links.hubs and links.broken in a weekly vault-health routine.
Operates on the session-active vault (see vault.current — selectable via vault.select) unless an explicit vaultPath argument is passed, which always wins.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vaultPath | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | Number of items in `items`. | |
| items | Yes | List of result items; per-item shape depends on the tool. |
Implementation Reference
- src/schema/links.ts:49-50 (schema)Input schema for 'links.orphaned' — accepts an optional vaultPath string.
export const linksOrphanedArgsSchema = z.object({ vaultPath: z.string().optional() }).strict(); export type LinksOrphanedArgs = z.input<typeof linksOrphanedArgsSchema>;