Documentation for the version you will use (security-checked)
get-docsReturns documentation sections that answer a question for a package at a specified version, including a security notice and safe-version docs when the release has known advisories.
Instructions
Returns the documentation sections that answer your question, taken from the package at a specific version (its published files and its repo at the release tag) and the project site. Without a version it documents the newest version with no known advisories. With a vulnerable version it starts with a SECURITY NOTICE and documents the safe version on the same release line, so the code you write keeps working after the upgrade.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Package name with ecosystem, as check-package takes them, instead of libraryId. | |
| query | No | The question or task, e.g. "protect routes with middleware". Without it: setup and main API. | |
| tokens | No | Approximate size of the answer in tokens (default 2500; raise it only when the answer was cut short). | |
| version | No | Version the project uses or pins, if any. Overrides the one in libraryId. | |
| ecosystem | No | Registry, when the id does not say it or says the wrong one; overrides the id. | |
| libraryId | No | Id from find-library, e.g. "npm:next" or "npm:next@15.1.0". A GitHub repo ("/vercel/next.js") also works. Or pass name and ecosystem instead. | |
| packageName | No | Registry package name, when it differs from the id; overrides the id. |