prune-paragraph-anchors
Remove stale or specified paragraph anchor entries from the local anchor registry, with a dry-run default so you can review before deleting.
Instructions
Use when: cleaning up anchors that no longer resolve, or removing specific anchors. Returns: the stale anchors found (anchorId, status, message), how many were examined, and the ids removed (none on a dry run). Do not use when: an anchor is only ambiguous or needs reminting; it still points at something. Safety: dryRun defaults to true, so nothing is removed until you call again with dryRun false. Removes entries from the local anchor registry only; never changes Notes. Without anchorIds it resolves every anchor in scope (Full Disk Access) and treats not-found and note-not-found as stale unless statuses says otherwise. A note in Recently Deleted gives note-deleted, which is not pruned by default because the note can be restored.
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": "prune-paragraph-anchors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Report without removing (default true) | |
| statuses | No | Resolution statuses treated as stale (default not-found, note-not-found) | |
| anchorIds | No | Remove exactly these anchors instead of resolving to find stale ones | |
| noteIdentifier | No | Only anchors in the note with this Notes UUID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stale | No | ||
| dryRun | No | ||
| removed | No | ||
| examined | No |