get-library-docs
get-library-docsFetch up-to-date library documentation and code examples to ensure development work uses current API references and conceptual guides.
Instructions
Fetches up-to-date documentation for a library. You must call 'resolve-library-id' first to obtain the exact Context7-compatible library ID required to use this tool, UNLESS the user explicitly provides a library ID in the format '/org/project' or '/org/project/version' in their query. Use mode='code' (default) for API references and code examples, or mode='info' for conceptual guides, narrative information, and architectural questions.
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 |
|---|---|---|---|
| context7CompatibleLibraryID | Yes | ||
| mode | No | ||
| topic | No | ||
| page | No |