lockdocs
v0.7.12Exact-version library docs from your lockfile — local, offline, no rate limits.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
resolve Resolve dependency versions
List the exact dependency versions this project pins (from package-lock.json, pnpm-lock.yaml, yarn.lock, bun.lock, Cargo.lock, uv.lock, poetry.lock, requirements*.txt, go.mod) and whether their docs are available locally. Call it to learn which version of a library the code actually uses before writing code against it.
| Parameter | Type | Description |
|---|---|---|
filter | string | Substring of a package name; also searches transitive dependencies. |
root | string | Absolute path of the project (defaults to the client's workspace root or the server's working directory). |
docs Search version-exact docs
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.
| Parameter | Type | Description |
|---|---|---|
query * | string | What you need, in words or identifiers, e.g. "strict object unknown keys" or "cookies async". |
offline | boolean | Use only installed and cached files for this call (no package or upstream downloads). |
package | string | Package name, optionally ecosystem- or version-qualified: zod, npm:zod, pydantic, tokio, github.com/gin-gonic/gin. Comma-separate several. |
root | string | Absolute path of the project (defaults to the client's workspace root or the server's working directory). |
tokens | integer | Answer budget in tokens (default 1200). |
upgrade_to | string | 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 a… |
api Exact API of a symbol
The exact signature and doc comment of one symbol in the installed version, with overloads, members (for classes, interfaces, structs, traits) and other matches. Accepts `zod.z.object`, `z.object`, `tokio::spawn`, `axum::Router::route`, `pydantic.BaseModel.model_dump`, `gin.Context.JSON`.
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Symbol path, optionally prefixed by the package name. |
offline | boolean | Use only installed and cached files for this call (no package or upstream downloads). |
package | string | Package or npm public import path (e.g. zod/v4). Defaults to the package root export; unavailable or ambiguous imports are reported, not substituted. |
root | string | Absolute path of the project (defaults to the client's workspace root or the server's working directory). |
tokens | integer | Answer budget in tokens (default 1200). |