generate_contextual_content
Analyze source code to generate context-aware documentation using AST and knowledge graph insights. Supports tutorial, how-to, reference, and explanation formats with customizable detail and output.
Instructions
Generate context-aware documentation using AST analysis and knowledge graph insights (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": {
"filePath": "<filePath>"
},
"name": "generate_contextual_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the source code file to document | |
| documentationType | No | Type of Diataxis documentation to generate | reference |
| includeExamples | No | Include code examples in generated documentation | |
| style | No | Documentation detail level | detailed |
| outputFormat | No | Output format for generated content | markdown |