search_package_docs
Search official documentation of any npm, PyPI, or crates.io package by query, discovering relevant pages from its docs, homepage, and linked sources.
Instructions
Search a package's documentation for a query. Discovers pages from the registry's docs/homepage, llms.txt / llms-full.txt, sitemap.xml, and same-host links. Returns the highest-scoring pages with source URLs. Bounded to a small set of pages and characters.
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": {
"package": "<package>",
"query": "<query>"
},
"name": "search_package_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Free-text query (matched case-insensitively) | |
| package | Yes | Package name | |
| ecosystem | No | Language/ecosystem (auto-detected if omitted) | |
| max_pages | No | Max pages to return (default 15) |