| name | pdf-ingestion |
| description | Upload pending PDFs to the single NotebookLM corpus notebook and archive successful uploads. |
PDF Ingestion
Use one reusable NotebookLM notebook for the project corpus:
- Verify the file exists as a top-level
input/*.pdf file.
- Verify the single notebook ID is stored under
knowledge:notebook in .workflow_state.json, or create the notebook only during explicit workflow execution.
- Upload with synchronous waiting:
nlm source add <notebook-id> --file "input/<filename>.pdf" --wait
- After the upload succeeds, move the PDF to
input/processed/<filename>.pdf.
- Record the original and processed paths in workflow state.
Do not delete NotebookLM notebooks or sources. Do not upload files already under input/processed/.