snapshots
Deterministic test fixtures + eval grading: save the project's entire dataset under a name, restore it exactly later, or DIFF it against live data (list/delete too). action:"diff" is machine-checkable grading — compares the named snapshot (expected) against live data (actual, or another snapshot via against) and returns {identical, summary, resources[] with per-record added/removed/changed field detail}: author an answer-key snapshot, let the agent work the fork, then assert .identical. Any GET can also be served read-only FROM a snapshot without touching live data via query param mock_snapshot= in query_records params — parallel test scenarios on one project.
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": {
"project": "<project>",
"adminKey": "<adminKey>",
"action": "<action>"
},
"name": "snapshots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | save only, optional: AUTHOR the snapshot inline instead of capturing live state — {"tasks":[{...records...}],"labels":[]} (records verbatim, ids preserved, [] = expected-empty, new resource names allowed). Author an eval answer key, then grade with the diff endpoint. | |
| name | No | Snapshot name (required for restore/delete/diff; default for save: snapshot-<n>). | |
| action | Yes | ||
| ignore | No | diff only, optional: comma-separated field names excluded from comparison (volatile timestamps etc.), e.g. "updatedAt,id". | |
| against | No | diff only, optional: compare the named snapshot against THIS other snapshot instead of live data. | |
| project | Yes | ||
| adminKey | Yes |