brain_distill
Captures web pages, GitHub READMEs, YouTube subtitles, PDFs, local files, or pasted text into a dated, provenance-tracked markdown file in the immutable raw/ folder for later distillation.
Instructions
Capture an external source into the agent's immutable raw/ folder as a dated markdown file with provenance: source, title, author, published, sha256, word count. This is step 1 of /distill; compiling the knowledge page from the raw file is your job afterwards.
Use it for a web page (defuddle with a stdlib fallback), a GitHub repo README, YouTube
subtitles via yt-dlp, a PDF saved as bytes, a local file, or pasted text. Not for short
facts (brain_remember).
Fetches over the network for URLs. The same source or body a second time returns
`status: exists` and writes nothing. A `note` flags a thin capture (JS-only or paywalled
page) so you can read it in a browser and call again with `text`.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | The body itself, when you already have it; skips fetching. | |
| title | No | Override the detected title. | |
| author | No | Override the detected author. | |
| source | Yes | A URL (web page, GitHub repo, YouTube video, PDF), a local file path, or a short name for pasted `text`. | |
| published | No | Publication date YYYY-MM-DD, if known. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||