docs
Generate and manage project documentation: retrieve specific docs, generate from code or git diff, check for stale entries, and validate function contracts.
Instructions
Documentation (.ctx) management. Actions: get|generate|check_stale|validate_contracts
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": {
"action": "<action>",
"path": "<path>"
},
"name": "docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | For get: specific file docs | |
| path | Yes | Project root path | |
| scope | No | For generate: "all", "focus" (git diff), or array of file paths | |
| action | Yes | Documentation action to perform | |
| strict | No | For validate_contracts: report functions missing from .ctx | |
| overwrite | No | For generate: overwrite existing (merge preserves descriptions) |