nodejs_build
Execute build scripts for Node.js projects using npm, yarn, pnpm, or bun. Supports custom scripts, production builds, and watch mode.
Instructions
Run build script with package manager (npm/yarn/pnpm/bun)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "nodejs_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Additional arguments | |
| watch | No | Watch mode | |
| script | No | Build script name (default: build) | |
| timeout | No | Command timeout in milliseconds | |
| directory | No | Working directory | |
| production | No | Production build |