Bring back an older version as a NEW version (history is never rewritten). Also undeletes a deleted doc. Brief: project admins only (403 `doc_admin_only`).
restore_doc_versionBring back an older version as a NEW version (history is never rewritten). Also undeletes a deleted doc. Brief: project admins only (403 doc_admin_only).
Undo a bad edit: brings back the version at at (a commit from get_doc_history) as a NEW version — history is never rewritten. version = the doc's current version from get_doc, or null when the doc is deleted (this also undeletes it). Brief (project admins only, 403 doc_admin_only), notes and handoffs.
WRITE: version = from your latest read (get_issue, list_comments, list_sprints, get_doc, read_file). 409 version_conflict (details.current, details.current_version): re-read, re-apply your change, retry — never overwrite blindly; when the changes disagree, ask the user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | Yes | The `commit` of the version to bring back (get_doc_history). | |
| kind | Yes | ||
| slug | Yes | File name of a doc without `.md`: lowercase a–z 0–9 and `-` (brief, notes, company brief) or `H-{n}` (handoffs). | |
| reason | No | Spec D144: why you make this change (≤ 200 characters). Optional, but give it when you act as an agent account — it is shown in the agent's run log ("moved KJ-12 To Do → In Progress because <reason>"). board-mcp records it in `agent.run`; board-core / board-files accept it and ignore it (it never changes the file, the version or the history). | |
| message | No | ||
| version | Yes | Current version of the doc; null when it is deleted. | |
| project_key | Yes | Project key, e.g. `KJ`. 2–10 chars, uppercase letters and digits, starts with a letter. |