What's New
Label Reorganize (nlm label reorganize)
When labels already exist in a notebook, you can now force AI re-categorization instead of being stuck with the original labels.
Two modes:
- All sources — replaces all existing labels from scratch (requires
--confirm/confirm=True) - Unlabeled sources only — labels sources not yet in any category, preserves existing labels
CLI:
nlm label reorganize <notebook-id> # all sources, prompts for confirmation
nlm label reorganize <notebook-id> --unlabeled # unlabeled sources only, no prompt
nlm label reorganize <notebook-id> --confirm # all sources, skip promptMCP tool (label):
label(notebook_id="...", action="reorganize", confirm=True) # all sources
label(notebook_id="...", action="reorganize", unlabeled_only=True) # unlabeled onlyOther Changes
- Extract
_require_notebook_id()helper to deduplicate service validation - Document both reorganize API modes in API_REFERENCE.md