Inbox snapshot
cooper_inbox_snapshotUse this to save or restore a named snapshot of one inbox. Requires auth. Inputs: inbox_id (omit when this key is limited to one inbox), action (create, list, diff, restore, or delete), name when action is create, snapshot_id when action is diff, restore, or delete. create returns the snapshot. list returns snapshots newest first. diff returns messages added, label or read changes, and drafts created after the snapshot. restore puts labels and read state back and deletes drafts created after the snapshot. It does not delete messages and it does not unsend mail. The result says unsend false. At most 50 snapshots per inbox. COOPER_INBOX_SNAPSHOTS=off returns HTTP 503 snapshots_disabled. The default is on. Same as /api/v1/inboxes/{id}/snapshots.
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": {
"action": "<action>"
},
"name": "cooper_inbox_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Snapshot name, 1 to 80 characters. Required for create. | |
| action | Yes | create, list, diff, restore, or delete. | |
| inbox_id | No | Inbox id, username, or email. Omit it when this key is limited to one inbox. | |
| snapshot_id | No | Snapshot id (snp_…). Required for diff, restore, and delete. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Snapshot id (snp_…), when one snapshot is returned. | |
| data | No | Snapshots, when action is list. | |
| name | No | Name given at create. | |
| note | No | States that sent mail is not unsent. | |
| object | No | inbox_snapshot, list, inbox_snapshot_diff, or inbox_snapshot_restore. | |
| unsend | No | Always false. Restore does not unsend mail. | |
| inbox_id | No | Inbox id. | |
| created_at | No | ISO-8601 time the snapshot was taken. | |
| messages_added | No | Messages stored after the snapshot. They are not deleted on restore. | |
| drafts_discarded | No | How many drafts created after the snapshot were deleted, on restore. | |
| messages_deleted | No | Always 0. |