generate_docs
Create documentation for code files and folders, supporting jsdoc, readme, API, and usage examples formats to improve code understanding and maintenance.
Instructions
Generate docs (jsdoc/readme/api/examples) for a file or folder.
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": {
"path": "<path>"
},
"name": "generate_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File or directory to document | |
| docType | No | Documentation type (default: jsdoc) |