learn
Save durable decisions, corrections, and facts that cost real effort to find into a persistent knowledge base for future retrieval. Use tags for scoping and automatic section splitting for structured content.
Instructions
Store durable knowledge in the agent's second brain. Store decisions, corrections, and facts that cost real effort to find. Do not store what the code or docs already say, chat summaries, guesses, or secrets. When a stored fact is wrong, fix it with revise, not a second copy. Structured content (Markdown, HTML, TOML) splits into sections sharing a docid, each carrying a level and a parent. Attach tags for scoping. replace matches on title within its document and heading path; a title with neither matches on title alone, so name things distinctly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Tags for scoping and filtering | |
| type | No | MIME type or format hint. Supported: text/markdown, text/html, application/toml (also text/toml, text/x-toml), text/plain, image/*. Default: text/markdown. | |
| docid | No | Document ID to group sections under. Set automatically when content splitting is active. | |
| title | No | Title for the content. When the content splits into multiple sections this names the document; it does not disable splitting. Required for image/* types. | |
| content | Yes | Raw text or Markdown content to index. Do not wrap in JSON. | |
| replace | No | Replace existing section with same source key (supersession) | |
| description | No | Optional description. When the content splits, it describes the document and is stored on its root section. | |
| sectionType | No | Partition to scope the operation to: default | skill | agent |