Read one doc (any kind, the company brief included) with its current `version` and `last_edited` (who saved it, when).
get_docRead one doc (any kind, the company brief included) with its current version and last_edited (who saved it, when).
Returns the doc (frontmatter, the markdown body), its current version and last_edited (who saved this version — by, name, agent_token_id — at, and rules: true for the admin-only briefs) — works for every kind, the company brief included. Call this before update_doc, delete_doc, restore_doc_version or acknowledge_handoff and pass the version it returns. at (a commit from get_doc_history) reads an older version.
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_key": "<project_key>",
"kind": "<kind>",
"slug": "<slug>"
},
"name": "get_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Commit hash (from get_doc_history) to read an older version. | |
| 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). | |
| project_key | Yes | Project key, e.g. `KJ`. 2–10 chars, uppercase letters and digits, starts with a letter. |