Search npm for browser-suitable packages
search_packagesSearch npm for a need (e.g. 'date picker', 'markdown parser') and annotate each result with browser readiness for direct UNPKG file lookup: browser-ready ESM, CommonJS-only, or unclear, with the entry file and size when known. Ranking is npm's relevance order; readiness is annotated, never hidden, so a CJS-only result is visible as such rather than silently dropped.
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": "search_packages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Results to annotate. Defaults to 5. | |
| query | Yes | What the package should do, e.g. 'confetti', 'sanitize html', 'date picker'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| query | Yes | ||
| results | Yes |