get_api_docs
Retrieve API documentation for any file in a repository, including function signatures, parameters, return types, and docstrings, using accurate AST parsing without prior indexing.
Instructions
Get API documentation with function signatures, parameters, return types, and docstrings for a specific file. Uses tree-sitter AST parsing for accuracy.
No prior indexing required.
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": {
"repo_path": "<repo_path>",
"file_path": "<file_path>"
},
"name": "get_api_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | Path to the repository | |
| file_path | Yes | File path relative to repo root to get API docs for |