edit
Update lore items via append, overwrite, section replacement, supersede, or status and level changes. Also manage tags and links.
Instructions
edit(id, action=, ...) — 4 write modes (action). If action is omitted, defaults to append (msg alone works too).
Write modes (action, tool option = behavior match):
append (default, non-destructive) → edit(id, action='append', msg='new content') # or omit action, msg alone — appends to the end of body, keeps the rest
section (partial edit) → edit(id, action='section', section='heading', msg='new section content') # replaces just that section (existing heading only — errors if missing; to add a new section use append), keeps the rest
overwrite (full replace) → edit(id, action='overwrite', msg='new body' [, tags=[...], ...]) # old body kept in history(recoverable via log). tags/items(doc only)/links are also fully replaced in the same call
supersede (follow-up publish) → edit(id, action='supersede', msg='new conclusion') # creates a new id, old one head=False
(action= is one of append|section|overwrite|supersede. Unspecified('') means append.)
Other:
mark as dropped → edit(id, status='dropped') (still shown in search)
level (lore importance) → edit(id, level=N): 1=note(default) 2=verified 3=pinned(shown in brief) 4=global(all projects)
supersede chain (keep old + new head) → edit(id, action='supersede', ...) (or add(type='lore'|'doc', relates=old_id, ...))
supersede by an existing item (reconcile a contradiction) → link(a=X, b='lr-Y'|'dc-Y', action='supersede') (X→head=False)
permanent delete → rm(id)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| msg | No | ||
| flow | No | ||
| help | No | ||
| tags | No | ||
| items | No | ||
| level | No | ||
| links | No | ||
| title | No | ||
| action | No | ||
| status | No | ||
| section | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |