shell_execute_streaming
Execute long-running shell commands with real-time output streaming for build processes, scripts, and services that produce continuous output over time.
Instructions
Execute a long-running shell command with streaming output support. Captures output as it's produced.
Use this for:
Build processes (npm build, cargo build, etc.)
Long-running scripts
Services that produce continuous output
Commands that take significant time to complete
The command runs in /bin/bash by default. Output is streamed and returned when complete.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The shell command to execute with streaming output | |
| cwd | No | Working directory for the command | |
| env | No | Environment variables to set for the command | |
| shell | No | Shell to use (default: /bin/bash) | |
| sudo | No | Execute with sudo privileges |
Input Schema (JSON Schema)
{
"properties": {
"command": {
"description": "The shell command to execute with streaming output",
"type": "string"
},
"cwd": {
"description": "Working directory for the command",
"type": "string"
},
"env": {
"additionalProperties": {
"type": "string"
},
"description": "Environment variables to set for the command",
"type": "object"
},
"shell": {
"description": "Shell to use (default: /bin/bash)",
"type": "string"
},
"sudo": {
"default": false,
"description": "Execute with sudo privileges",
"type": "boolean"
}
},
"required": [
"command"
],
"type": "object"
}