sync_code_to_docs
Detect code-documentation drift using AST analysis. Preview, apply, or auto-sync updates to keep documentation aligned with code changes.
Instructions
Automatically synchronize documentation with code changes using AST-based drift detection (Phase 3)
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": {
"projectPath": "<projectPath>",
"docsPath": "<docsPath>"
},
"name": "sync_code_to_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the project root directory | |
| docsPath | Yes | Path to the documentation directory | |
| mode | No | Sync mode: detect=analyze only, preview=show changes, apply=apply safe changes, auto=apply all | detect |
| autoApplyThreshold | No | Confidence threshold (0-1) for automatic application of changes | |
| createSnapshot | No | Create a snapshot before making changes (recommended) |