Log note (replaces note)
log_noteWrite a free-text note for a day, replacing any prior note of the same kind and date. Use for mood or general events; to add without deleting, choose the append tool.
Instructions
Log a free-text note on the owner's behalf (agent write).
For narratives that belong next to the metric data instead of in chat
history: kind="mood" for emotional state ("为什么今天情绪低落"),
kind="general" for day events worth joining against sleep/HRV later.
(sleep/menstrual notes stay iOS-authored — this tool refuses them.)
⚠️ THIS TOOL DELETES. There is one note per (kind, day), and your text
becomes its ENTIRE contents — anything already written for that kind+day
is silently deleted. If you meant to ADD to a day rather than replace it,
STOP and call log_note_append instead; it cannot delete anything.
(merge=True still does the same thing as log_note_append and keeps
working for callers that already use it. New callers should use the
separate tool: which one you called is visible to the owner, a flag
buried in the arguments is not.)
The result carries replaced_text — the note this call deleted. If it is
non-null and you did not intend to replace, you just destroyed that text;
re-send it with merge=True.
For symptoms, use log_note_append. Discomfort shows up in installments
across a day (nausea at noon, dizziness at night), so the second write
of the day is the normal case, not the exception — and this tool would
replace the morning's entry with the evening's.
date = LOCAL calendar day "YYYY-MM-DD" (default today). Read back via
get_notes (optionally target_kind="mood"/"general"). Encrypted
end-to-end before it ever leaves this machine.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| kind | No | general | |
| text | Yes | ||
| merge | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||