library_docs
Fetch official docs for any library and get a distilled answer to your specific question, with optional version pinning and caching for offline reuse.
Instructions
Fetch up-to-date official documentation for a library and distill it under your question.
Context7-style, but local and unlimited: the docs site is resolved from a
built-in index (or one live web search), fetched from the primary source,
and distilled to passages relevant to query. Repeated questions about
the same library are instant, offline and free (raw-page cache).
Args:
library: library name, e.g. "fastapi", "react", "postgresql", "crawl4ai"
query: your concrete question about the library (used for distillation)
max_chars: output character budget (300-20000)
refresh: re-fetch the docs page even if cached
subpages: when the docs home is navigational, follow this many
same-site subpages ranked by query relevance (0 disables)
version: pin docs to this version (tag, e.g. "0.115.0", "v3", branch
name). Works for GitHub-backed libraries: docs come from that
exact tag on raw.githubusercontent.com. Doc sites are shown at
their latest with an honest note; wrong/missing tag on GitHub
also falls back to latest with a note in the answer
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| library | Yes | ||
| refresh | No | ||
| version | No | ||
| subpages | No | ||
| max_chars | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |