Bus Archive
bus_archiveArchive a handled message to clear it from pending and allow the session to close. Mark as read when only seen, done when fully handled.
Instructions
File a message away so it stops blocking the session from closing.
The Stop hook counts what is still pending, so archive each message once it is genuinely handled — not to silence the reminder.
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": {
"message_id": "<message_id>"
},
"name": "bus_archive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | 'done' when handled, 'read' when only seen. | done |
| message_id | Yes | Full or partial message id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||