get-library-docs
Retrieve up-to-date library documentation and code examples by specifying the library name and topic. Automatically fetches comprehensive and focused content for efficient reference and learning.
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: 10000). Higher values provide more context but consume more tokens. | |
topic | Yes | Topic to focus documentation on (e.g., 'hooks', 'routing', 'authentication') |