npm_run
Run npm scripts defined in package.json, including build, test, and start. Pass optional arguments after '--' for custom execution.
Instructions
Run an npm script defined in package.json.
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": {
"script": "<script>"
},
"name": "npm_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Optional arguments to pass after "--". | |
| script | Yes | The script name (e.g. "build", "test", "start"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||