install
Install project or global dependencies from package.json or named packages, with options for dry-run previews, devDependency saving, and exact versions.
Instructions
Install packages in a project
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": "install"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the package directory | |
| dryRun | No | Preview install without making changes | |
| global | No | Install globally | |
| saveDev | No | Save as devDependency | |
| packages | No | Package names to install (empty = install all from package.json) | |
| saveExact | No | Save exact version instead of semver range | |
| allowScripts | No | Explicitly reviewed packages allowed to run install scripts during a global install (npm 12+). For project installs use approve-scripts instead. |