generate_wiki
Generates wiki docs — parameters, risk posture, Markdown pages — from source code; eliminates documentation drift that costs engineers hours per sprint. Use when a module ships undocumented or its docs lag. WHEN NOT TO USE: snippets under 5 lines; files with no public functions. Languages: PowerShell, Python, Go, CSharp, Java, COBOL. Use async=true for large files; poll with get_generation_status.
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": {
"code": "<code>",
"language": "<language>"
},
"name": "generate_wiki"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Raw source code to document. Max 1 MB. | |
| async | No | When true, returns a job_id immediately and processes in the background. Default false (synchronous). | |
| language | Yes | Source language. One of: PowerShell, Python, Go, CSharp, Java, COBOL. | |
| module_name | No | Optional display name used as the wiki page title. When omitted, a name is inferred from the code. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| _meta | No | ||
| error | No | ||
| job_id | No | ||
| status | Yes | ||
| wiki_doc | No | ||
| retryable | No | ||
| elapsed_ms | Yes | ||
| error_code | No | ||
| available_languages | No |