Get Documentation
gt_get_docsFetches live reference documentation for a specified library and topic, using a library name, package ID, or docs URL to ground answers and reduce hallucinations.
Instructions
Reference docs for one library, filtered to a topic. libraryId: a plain name ('nextjs'), GroundTruth ID, npm:/pypi: package, or a docs URL. Curated guidance: gt_best_practices. Code-only snippets: gt_snippets.
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": {
"libraryId": "<libraryId>"
},
"name": "gt_get_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | No | Specific subject, e.g. 'middleware' | |
| tokens | No | ||
| version | No | e.g. '15' | |
| libraryId | Yes | Plain name ('nextjs'), GroundTruth ID, npm:/pypi: package, or docs URL | |
| projectPath | No | Project root, to read the installed version |