docs
Retrieve up-to-date, version-correct documentation for any library, framework, or API. Automatically detects the project's pinned version and fetches official docs, supporting direct URL input.
Instructions
Up-to-date official documentation for a library/framework/API (codehelper's local-first answer to Context7). Resolves the version this project pins from its manifests, then fetches version-correct docs preferring the llms.txt/llms-full.txt standard before HTML. library may also be a direct https URL (docs page, API reference, or OpenAPI page) to fetch it as-is. Unknown libraries resolve via npm/PyPI/crates metadata; if one is still missing, register it with docs_add. Network fetch is privacy-gated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Repository name (optional; defaults to current MCP workspace) | |
| topic | No | Optional focus, e.g. 'app router', 'middleware', 'migrations' | |
| format | No | Response text encoding: toon (default, token-efficient) | json | |
| library | Yes | Library/framework name (next, react, laravel, cobra, django) OR a direct https docs/API URL | |
| version | No | Override version (default: detected from this project's manifest) | |
| no_cache | No | Bypass the on-disk docs cache | |
| max_tokens | No | Approx token budget for returned docs (default 5000) | |
| approve_network | No | Allow network fetch for this call even if research is disabled in learning.json |