Every saved version of a doc, newest first: who saved it (person, and the agent token when an AI agent did), when, and the message.
get_doc_historyRead-onlyIdempotent
Every saved version of a doc, newest first: who saved it (person, and the agent token when an AI agent did), when, and the message.
Every saved version, newest first: commit, version (null for a delete), who saved it (actor_user_id, and agent_token_id when an AI agent did), message, created_at, deleted. Read an older version with get_doc at = its commit; bring it back with restore_doc_version.
You act with exactly the rights of the user who owns this token; a project you cannot see returns not_found.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Project docs (spec D76): `brief` = why the project exists, goals, business and tech structure; `notes` = working notes / progress; `handoffs` = hand-over to teams or the whole project; `company_brief` = the company's rules and guidelines (read-only in project routes). | |
| slug | Yes | File name of a doc without `.md`: lowercase a–z 0–9 and `-` (brief, notes, company brief) or `H-{n}` (handoffs). | |
| limit | No | ||
| project_key | Yes | Project key, e.g. `KJ`. 2–10 chars, uppercase letters and digits, starts with a letter. |