get_library_docs
Fetch library documentation by Context7 ID with an optional topic focus, so agents can answer coding questions using accurate API details.
Instructions
Get documentation for a library by its Context7 ID.
Args: library_id: The resolved library ID from resolve_library_id. topic: Optional focus area (e.g. "authentication", "routing").
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": {
"library_id": "<library_id>"
},
"name": "get_library_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | No | ||
| library_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |