kb_add_note
Saves text as a dated Markdown note in a chosen category, adds tags and source metadata, refreshes the search index, and returns an existing path when duplicate content is detected.
Instructions
Save text in one step: notes, pasted data, a summary, a web clip, a chat excerpt.
Writes <category>/<YYYY-MM-DD>_<title>.md with a small YAML header,
makes it searchable immediately and refreshes INDEX.md. If a note with the
same content already exists, nothing is written and its path is returned
(duplicate: true) unless allow_duplicate is set.
:param title: Short title; also used for the file name. :param content: The body (Markdown or plain text). :param category: Target folder, e.g. "_Inbox", "03_Notes", "01_Documents/财务" (created if missing). :param tags: Optional tags, e.g. ["预算", "2026"]. :param source: Optional origin: a URL, "微信聊天", a book title ... :param date: Optional YYYY-MM-DD for the file name (default: today).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| tags | No | ||
| title | Yes | ||
| source | No | ||
| content | Yes | ||
| category | No | _Inbox | |
| allow_duplicate | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |