Search version-exact docs
docsSearches exact-version dependency documentation from lockfiles and installed packages, returning cited API signatures, README, changelog, and source sections to verify library behavior before coding.
Instructions
Answer a question from the docs of the exact installed version of a dependency: README, changelog, docs folder (public release-tag docs fetched on first use unless offline), and API reference (signatures + doc comments from .d.ts, Python, Rust and Go sources). Returns the most relevant sections within a token budget (hybrid keyword + embedding search), each cited as package@version path:line. Use it before using a library API you are not sure about for this version. Omit package to search all direct dependencies.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Absolute path of the project (defaults to the client's workspace root or the server's working directory). | |
| query | Yes | What you need, in words or identifiers, e.g. "strict object unknown keys" or "cookies async". | |
| tokens | No | Answer budget in tokens (default 1200). | |
| offline | No | Use only installed and cached files for this call (no package or upstream downloads). | |
| package | No | Package name, optionally ecosystem- or version-qualified: zod, npm:zod, pydantic, tokio, github.com/gin-gonic/gin. Comma-separate several. | |
| upgrade_to | No | lockdocs Pro: instead of searching, report the API changes between the pinned version of `package` and this target version (e.g. "15.0.0"), limited to the symbols this project calls, with call sites and migration-guide sections. `query` is ignored then. Needs `package`; the target's files must be cached, installed, or downloadable (fetching enabled). |