docs_query
Queries Context7 documentation by library ID to retrieve relevant API details and usage guidance; supports query terms and token limits for focused results.
Instructions
Query Context7 docs for a library. Uses Context7 API when CONTEXT7_API_KEY is set. libraryId (from docs_resolve_id), query, tokens optional.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "docs_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| query | No | ||
| tokens | No | ||
| libraryId | No | ||
| cacheToMemory | No |