fetch-npm-types
Retrieve TypeScript type definitions for specified NPM packages, sourced either from the main package or @types/. Supports version and search mode customization for precise type retrieval.
Instructions
指定されたNPMパッケージのTypeScript型定義を取得します。メインパッケージの型定義または@types/パッケージから取得します。
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": {
"packageName": "<packageName>"
},
"name": "fetch-npm-types"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| packageName | Yes | NPMパッケージ名(例: 'express', 'react') | |
| searchMode | No | 検索モード: 'main'=メインパッケージのみ, 'types-package'=@types/パッケージのみ, 'search'=両方を検索 | main |
| version | No | バージョン(デフォルト: 'latest') | latest |