mindbase_ingest_file
Ingest a PDF, Markdown, or text file from a local path or direct URL, archive the original, and return extracted text for immediate discussion.
Instructions
Ingest a file (PDF, .md, or .txt) into a project: archives the original into sources/raw//, extracts text locally (pdfjs for PDFs — no API call), writes an .extracted.md sidecar for PDFs, and returns the text. Accepts a local absolute path OR an http(s) URL that points directly at a file (e.g. an arXiv PDF link) — URLs are downloaded first. After calling this, discuss the key takeaways with the user and file a summary via mindbase_contribute.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path on disk, or a direct http(s) URL to a PDF/.md/.txt file | |
| title | No | Optional human title; defaults to the filename | |
| projectId | No | Project id; defaults to the current project (config.json) |