journal_write
Append session wrap-up entries to the cross-window journal, using one entry per topic for multi-topic conversations. Use before ending, switching windows, or compacting context to preserve memory.
Instructions
Append 收尾 entries to the cross-window journal (~/.dsh/memory/journal/). This is the only write path available in 对话模式, so use it whenever a session wraps up, the user says 收尾/换窗口/晚安, or before compacting context. If the window covered several distinct topics, pass them all in ONE call as entries — one item per topic — instead of writing a single summary that swallows the rest. Only writes inside the journal directory and returns the exact files written.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "journal_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card | No | 对应专题卡 id,没有就省略。 | |
| date | No | YYYY-MM-DD,默认今天。 | |
| open | No | 未决。 | |
| time | No | HH:MM,默认现在。 | |
| quote | No | 关键原话,带 ts。 | |
| where | No | 聊到哪。 | |
| status | No | 已结 / 未定 / 在做,默认未定。 | |
| talked | No | 聊了什么。 | |
| window | No | 窗口 id,如 dbd7e1ce(会话 id 前 8 位)。省略时自动用当前会话 id 前缀。 | |
| entries | No | 多条模式:一个窗口聊了几件事就传几条,每条一个话题。每项可覆盖 summary/time/status/card/talked/where/quote/open;window 与 date 取顶层。 | |
| summary | No | 一句话收尾(≤60 字),单条模式必填。 |