get-library-docs
Fetch documentation for any library using its Context7 ID, with optional topic focus and token limit.
Instructions
Fetches documentation for a library using a Context7-compatible library ID.
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": {
"context7CompatibleLibraryID": "<context7CompatibleLibraryID>"
},
"name": "get-library-docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | No | Focus the docs on a specific topic (e.g., "routing", "hooks") | |
| tokens | No | Max number of tokens to return. Values less than 1000 are automatically increased to 1000. | |
| context7CompatibleLibraryID | Yes | Exact Context7-compatible library ID (e.g., /mongodb/docs, /vercel/next.js) |