Bring back an earlier version of a report
restore_report_versionBrings back an earlier version of a report by saving its content as a NEW newest version. Nothing is deleted or overwritten: every version saved before stays in the history, and the restore itself shows there as a new version saved by the assistant. Send the version to bring back and the newest version number you read (list_report_versions gives both); if someone saved a newer version since, nothing is saved and the answer is stale with the newest number, so read the history again first. Only someone who may save a new version of the report may restore one. The answer gives the new version's number, not its content. If a public link still shows an older version because the new one failed the share check, warning and linkLag say which link and which part held it: tell the person, take that part out, and save again.
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": {
"report_id": "<report_id>",
"version": "<version>",
"expected_version": "<expected_version>"
},
"name": "restore_report_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | Yes | The number of the version whose content to bring back. | |
| report_id | Yes | The report (list_reports gives ids). | |
| workspace_id | No | Workspace id from whoami; omit when there is one. | |
| expected_version | Yes | The report's newest version number when you read it. |