npm_version_bump
Bump a package's version (patch, minor, major, or prerelease) in a chosen directory, with optional prerelease identifiers for controlled release updates.
Instructions
Bump package version (patch, minor, or major)
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": {
"type": "<type>"
},
"name": "npm_version_bump"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Version bump type | |
| preid | No | Prerelease identifier (e.g., alpha, beta, rc) | |
| directory | No | Directory containing package.json |