npm_command
Execute npm commands like install, test, and build directly in your VS Code workspace. Specify the command, arguments, and working directory for automated package management and project scripts.
Instructions
Run npm commands (install, test, build, etc)
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": {
"command": "<command>"
},
"name": "npm_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | npm command (install, test, run, etc) | |
| args | No | Additional arguments | |
| cwd | No | Working directory |