Write docs pages
write_docsGenerate and update structured documentation pages from code and ShadowGit history, with summaries, linked symbols or areas, and unchanged content preserved at the current head.
Instructions
Write the words of docs pages get_docs read, at the head it answered. For each page, an area by its id or overview: true, then a summary, one sentence on what it is for (at most 200 characters), and a body, short paragraphs on how it works (at most 400 words), each paragraph text or pieces, a piece linking a symbol (its file and name, as get_docs and get_code_context name them) or an area by its id, where the text names it. Or holds: true, when the words still hold after the changes get_docs listed: they are kept again at head, unchanged. Describe what the code does and how it works, from the code you read and the facts get_docs gave: a page with no words can start short, and later sessions add to it. Links that name nothing at head are made plain text and named back. A page past these limits is left out, with why; the others are kept. ShadowGit keeps every version in its own history, never in the project's files.
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": {
"head": "<head>",
"pages": "<pages>"
},
"name": "write_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| head | Yes | The head get_docs answered | |
| repo | No | Project name or absolute path. Defaults to the current project. | |
| pages | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| head | Yes | ||
| left | No | Pages left out before they were kept: their words past the app's rules | |
| repo | Yes | ||
| pages | Yes |