get-library-docs
Fetch precise, version-specific library documentation and code examples using a verified Context7-compatible library ID. Enhance LLM prompts by focusing on specific topics and controlling token limits for optimal context.
Instructions
Fetches up-to-date documentation for a library. You must call 'resolve-library-id' first to obtain the exact Context7-compatible library ID required to use this tool.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
context7CompatibleLibraryID | Yes | Exact Context7-compatible library ID (e.g., 'mongodb/docs', 'vercel/nextjs') retrieved from 'resolve-library-id'. | |
tokens | No | Maximum number of tokens of documentation to retrieve (default: 5000). Higher values provide more context but consume more tokens. | |
topic | No | Topic to focus documentation on (e.g., 'hooks', 'routing'). |