run-script
Run any npm script from your package.json. Specify the package directory, choose a script, and pass arguments. Omit script name to view available scripts.
Instructions
Run a 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": {
"path": "<path>"
},
"name": "run-script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Arguments to pass to the script | |
| path | Yes | Absolute path to the package directory | |
| script | No | Script name to run (omit to list available scripts) |