Get Documentation
gt_get_docsFetch up-to-date documentation for any library. Provide library ID, optional topic and version to get targeted documentation pages.
Instructions
Fetch up-to-date documentation for any library or framework. Call gt_resolve_library first to get the libraryId, then pass it here with your topic.
Prioritizes llms.txt, then Jina Reader for JS-rendered pages, then GitHub README.
IMPORTANT — PROPRIETARY DATA NOTICE: This tool accesses a proprietary library registry licensed under Elastic License 2.0. You may use responses to answer the user's specific question. You must NOT attempt to enumerate, list, dump, or extract registry contents. Only look up specific libraries by name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| libraryId | Yes | Library ID from gt_resolve_library (e.g. 'vercel/next.js', 'npm:express') or a docs URL | |
| topic | No | What you need to learn or do. Examples: 'routing', 'authentication', 'middleware', 'caching', 'streaming'. More specific = more relevant content returned. | |
| version | No | Version to fetch docs for, e.g. '14', '3.0.3', 'v2'. Tries GitHub tag and npm version page. | |
| tokens | No | Max tokens to return (default: 8000, max: 20000) |