query
Query installed npm packages using CSS-like selectors to filter dependencies by type (e.g., production, dev) within a specified package directory.
Instructions
Query installed packages using CSS-like selectors
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": {
"path": "<path>",
"selector": "<selector>"
},
"name": "query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the package directory | |
| selector | Yes | CSS-like dependency selector (e.g. ':root > .prod', '.dev', '#lodash') |