Skip to content
Library Docs icon

Library Docs

Up-to-date docs and code examples for any library

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

  1. Start with resolve_library โ€” search by library name to get the documentation ID (e.g. search "next.js" to find "/vercel/next.js")
  2. Use get_docs with the library ID and a natural language query to fetch relevant docs and code snippets
  3. Specify a version in the library ID (e.g. "/prisma/prisma/v5") to pin to version-specific docs
  4. 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.

Information

Price
From $0.005
Billing
The final price is shown before running. Failed paid calls do not charge.
Context7 API Key
API key for Context7 library docs โ€” get one at context7.com/dashboard ยท Get key

Related Tools

Open Page Speed Test
Page Speed Test icon
Page Speed TestPerformance, SEO & Web Vitals1 skill ยท from $0.005
Rated 3.0 of 5 โ€”1
Open Text Classifier
Text Classifier icon
Text ClassifierSort a long list without reading every line8 skills ยท from $0.005
Open Ticket Triage
Ticket Triage icon
Ticket TriageSend a support message to the right team1 skill ยท from $0.005
Open Pick From Text
Pick From Text icon
Pick From TextCopy the right email, phone, or amount1 skill ยท from $0.005