pkg_search
Search NuGet, npm, or PyPI by keyword to discover or confirm a package ID when the exact name is unknown, then use the returned lookup step to inspect the hit.
Instructions
Finds a package when you do not know its exact id. Each hit: id, latest version, download count when the registry gives one, and a one-line description; the reply ends with the pkg_find call to make next. Reads the public registry and changes nothing. How each ecosystem searches: NuGet (default) searches nuget.org by keyword. npm (ecosystem='npm') searches the npm registry by keyword. PyPI (ecosystem='pypi') has no search, so the query is tried as project names: the words joined with '-', then each word alone; only projects that exist come back, and none means no project has that name. WHEN TO USE: only to discover or confirm a package id. Skip it when the id is already in the project's package list or lock file and go straight to pkg_find; for the namespaces or modules of a known package use pkg_outline.
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": {
"query": "<query>"
},
"name": "pkg_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| take | No | Optional: number of packages to return (default 5, max 8) | |
| guide | No | true: put the packages guide first in the result. Use on your first packages call, or when told it changed. | |
| query | Yes | NuGet and npm: keywords or a name ('polly retry', 'react query'). PyPI: the project name as in 'pip install name' ('requests'); words are joined with '-' ('scikit learn' tries scikit-learn). | |
| ecosystem | No | Optional: 'nuget' (default), 'pypi' (a Python package) or 'npm' (a JavaScript or TypeScript package). | |
| includePrerelease | No | Optional: include prerelease versions (default false; NuGet only) |