Skip to content
Tools / Library Docs
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.

Resolve Library

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.

Returns: List of matching libraries with Context7 IDs, trust scores, available versions, and documentation coverage
Get Documentation

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.

Returns: Markdown documentation and code examples relevant to the query, ranked by relevance
Loading reviews...

Loading activity...

v0.022026-03-29
  • Both skills marked paid at $0.005/request
v0.012026-03-29
  • Initial release with resolve_library and get_docs skills

Connect ToolRouter to use Library Docs in Claude, ChatGPT, Copilot, and more — no code required.

Connect ToolRouter

What you can do with Library Docs

Look Up Package Documentation

Fetch current documentation for any npm package without leaving your development environment.

  1. Ask: "Get the documentation for the axios package"
  2. Claude resolves the library and retrieves the relevant docs
  3. Ask a specific question: "What are the available config options for an axios instance?"
  4. Claude answers using current documentation content

Check for Breaking Changes Before Upgrading

Pull current documentation to understand what changed in a new library version before upgrading.

  1. Ask: "Get the docs for [package], specifically what changed in version [X]"
  2. Claude retrieves the changelog and migration guide
  3. Describe your current usage: "I use the X method with Y parameter — does this still work?"
  4. Claude assesses the impact on your specific code and outlines migration steps

Generate Integration Code from Current Docs

Pull live library documentation and generate working integration code grounded in the current API.

  1. Ask: "Get the current docs for [package] then write me integration code that [describes what you need]"
  2. Claude fetches the documentation and generates code using accurate API calls
  3. Ask: "Add error handling and TypeScript types"
  4. Copy the working code into your project

Related Tools