memory_ingest
Ingests inbound messages into raw and short-term memory layers in one transaction, using msgId as an idempotency key to prevent duplicate records.
Instructions
入站消息落地:原文进原始层、正文进短期记忆,两写一个事务。幂等键是 msgId,重复投递不会产生第二条。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sessionId": "<sessionId>",
"msgId": "<msgId>",
"text": "<text>"
},
"name": "memory_ingest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| text | Yes | ||
| msgId | Yes | 平台消息 id,幂等键与锚点都由它派生 | |
| senderId | No | ||
| createdAt | No | ||
| sessionId | Yes | platform:scope:id,例如 qq:group:123456 | |
| importance | No |