run_command_long
Execute long-running Windows shell commands and retrieve all output after completion. For installs, builds, downloads, and backups, with a default 2-minute timeout.
Instructions
Execute a long-running shell command on this Windows PC and return all output after completion. Unlike run_command, this tool has a default timeout of 2 minutes (120 seconds) and is designed for commands that take a long time: npm install, pip install, compiling large projects, downloading big files, building projects, git clone large repositories, running test suites, or backup processes. Command runs through PowerShell.exe with a larger output buffer. Returns STDOUT, STDERR, and exit code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory where the command runs. Use absolute path. Default: user home directory. | |
| command | Yes | The shell command to execute (for long-running operations). Examples: "npm install", "pip install tensorflow", "git clone https://github.com/...", "cargo build --release" | |
| timeout | No | Execution timeout in milliseconds. Default: 120000 (2 minutes). Increase for very long-running commands. |