lib_docs
Answer a question about a package's README and documentation site: resolves the registry (npm, PyPI or crates.io), indexes README plus up to 8 docs pages on first call (cached 7 days, repeat calls are instant), returns ranked fragments with section and source url. Optional answer=true adds a short cited summary at the same price. Cost €0.003 per query, charged to the API key in Authorization: Bearer. Parameters — package: package name; registry: pypi | npm | crates | auto (default auto, tries pypi, npm, crates in order); version: exact version (default latest); question: what to find in the docs; top_k: 1–10 (default 5); answer: bool, short cited answer from the fragments (default false, same price).
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": "lib_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_k | No | ||
| answer | No | ||
| package | No | ||
| version | No | ||
| question | No | ||
| registry | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |