Library Docs
Up-to-date docs and code examples for any library
On it. Running Library Docs now and I'll bring the results straight back here.
Try asking
About
Library Docs fetches accurate, version-specific documentation and code examples for any library or framework — always from the live source, never from training data that may be months out of date. It covers thousands of libraries including React, Next.js, Prisma, Tailwind, Express, and more.
AI models often hallucinate outdated or incorrect API syntax because their training data doesn't reflect recent library changes. This tool bypasses that problem by fetching current documentation on demand, so you get the right method signature, the right import path, and the right configuration options for the version you're actually using.
What you can do
- resolve_library — search for any library by name and get its documentation ID plus available versions
- get_docs — fetch relevant documentation and code examples for a specific topic within a library
Who it's for
Developers who need accurate API references while coding. AI agents that write or review code and need to verify current syntax. Anyone migrating between library versions who needs to check what changed.
How to use it
- Start with resolve_library — search by library name to get the documentation ID (e.g. search "next.js" to find "/vercel/next.js")
- Use get_docs with the library ID and a natural language query to fetch relevant docs and code snippets
- Specify a version in the library ID (e.g. "/prisma/prisma/v5") to pin to version-specific docs
- Increase the tokens parameter beyond the default 5000 when you need more comprehensive coverage
Getting started
Call resolve_library with the library name first — you need the ID it returns before you can fetch docs. For most popular libraries the ID is predictable but resolve_library confirms it and shows what versions are available.
Search for a library by name and return its Context7-compatible library…
Fetch up-to-date documentation and code examples for a library using…
Search for a library by name and return its Context7-compatible library ID along with metadata like trust score, available versions, and snippet count. Always call this first to get the ID needed by get_docs.
Fetch up-to-date documentation and code examples for a library using its Context7-compatible ID. Returns relevant snippets ranked by the query. Use after resolve_library to get the library ID.
- Both skills marked paid at $0.005/request
- Initial release with resolve_library and get_docs skills