1. resolve-library-id
Resolves a general library name into a Context7-compatible library ID
Parameters:
libraryName
(required): The name of the library to search for
Functionality:
- Searches for matching libraries and returns Context7-compatible library ID format (e.g.,
/org/project
) - Provides detailed library information including name, description, code snippet count, trust score, and available versions
2. get-library-docs
Fetches documentation for a library using a Context7-compatible library ID
Parameters:
context7CompatibleLibraryID
(required): Exact Context7-compatible library ID (e.g.,/mongodb/docs
,/vercel/next.js
)topic
(optional): Focus the docs on a specific topic (e.g., "routing", "hooks")tokens
(optional, default 10000): Max number of tokens to return. Values less than the default are automatically increased to 10000