get-library-docs
Fetch up-to-date documentation and code examples for libraries by providing an author/library name and a specific topic. Retrieves relevant sections and explanations for focused learning and implementation.
Instructions
Retrieves up-to-date documentation and code examples for any library. This tool automatically searches for the library by name and fetches its documentation.
Usage:
- Provide the author and library name pair (e.g., "vercel/next.js", "shadcn-ui/ui", "vuejs/docs")
- Specify a topic to focus the documentation on (e.g., "dynamic", "routing", "authentication")
The tool will:
- Automatically find and select the most relevant library based on the provided name
- Fetch comprehensive documentation for the selected library
- Return relevant sections focused on the specified topic
Response includes:
- Library selection explanation
- Comprehensive documentation with code examples
- Focused content if a topic was specified
Input Schema
Name | Required | Description | Default |
---|---|---|---|
libraryName | Yes | Author and library name pair to search for and retrieve documentation (e.g., 'vercel/next.js', 'reactjs/react.dev', 'vuejs/docs') | |
tokens | No | Maximum number of tokens of documentation to retrieve (default: 15000). Higher values provide more context but consume more tokens. | |
topic | Yes | Topic to focus documentation on (e.g., 'hooks', 'routing', 'authentication') |