Skip to content
Tools / Library Docs / Use Cases / Look Up Package Documentation

Look Up Package Documentation

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

Quick answer: Use the Library Docs tool through ToolRouter to look up package documentation directly from Claude, ChatGPT, Microsoft Copilot, and OpenClaw — connect once, then drive it with plain-language prompts. No code required.

Tool
Library Docs icon
Library Docs

Switching to a browser to look up an API method, check a configuration option, or find the correct import path breaks the development flow more than it should. The documentation is often scattered across a README, separate docs sites, and version-specific changelogs, making it slow to find the specific answer you need.

The resolve_library and get_docs skills pull documentation for any npm package on demand — resolve the library by name, then retrieve the relevant documentation section. You get accurate, version-aware content from the canonical source rather than a cached training data answer that may be outdated.

Developers integrating new packages, engineers checking if a method signature has changed between versions, and teams onboarding to unfamiliar libraries all use this to stay in context rather than tab-switching to documentation sites.

How to look up package documentation with Claude, ChatGPT, Microsoft Copilot, and OpenClaw

Claude fetches live documentation and immediately applies it to your question — it does not just return the raw docs but answers your specific question using current content. You get a practical explanation rather than a raw reference paste.

Connect ToolRouter to Claude

1Open connector settings Open Settings
2Add a custom connector with these details
Name
ToolRouter
URL
https://api.toolrouter.com/mcp
3Let Claude set you up Open Claude

How to look up package documentation with Claude

Once connected (see setup above), use the Library Docs tool:

  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

Example prompt for Claude

Try this with Claude using the Library Docs tool
Look up the current documentation for the zod library and show me how to define a schema that validates an email address and a number between 1 and 100.

Tips for Claude

  • Ask about a specific method or feature rather than requesting the full docs
  • Specify the version if you are working with a specific release rather than the latest
  • Ask Claude to compare docs across two versions to understand what changed

Frequently Asked Questions

How do I look up package documentation with an AI assistant?

Fetch current documentation for any npm package without leaving your development environment. Connect the Library Docs tool to Claude, ChatGPT, Microsoft Copilot, and OpenClaw through ToolRouter, then ask the assistant in plain language. For example: Ask: "Get the documentation for the axios package" Claude resolves the library and retrieves the relevant docs

Which AI assistants can look up package documentation?

Claude, ChatGPT, Microsoft Copilot, and OpenClaw can all look up package documentation using the Library Docs tool through ToolRouter, with no API keys or coding required.

What does the Library Docs tool do?

Pull current documentation for any npm package or open-source library on demand.

Related Use Cases