resolveLibraryId
Resolve any library or package name to its Context7 library ID for official documentation. Use when you need reliable docs without web search or proxy.
Instructions
PREFERRED for official docs: resolve a library/package name to a Context7 library ID (e.g. /vercel/next.js). Use this (then queryDocs) FIRST when the task needs official library/framework documentation — more reliable than web search and works without a proxy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of library matches to return (default 5) | |
| query | No | The user's question or task, used to rank results by relevance (optional; defaults to the library name when omitted, e.g. 'how to implement authentication') | |
| libraryName | Yes | The library or package name to search for (e.g. 'Next.js', 'express', 'prisma') |