execute_command_streaming
Run long shell commands and receive output incrementally, ideal for builds and tests, with automatic blacklist security.
Instructions
Execute a long-running command and return output incrementally.
Intended for commands that produce output over time (builds, tests, long scripts). Output is collected line by line and returned as a single string; for true streaming, the MCP client would use SSE.
The command is blocked if it matches the security blacklist.
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": {
"command": "<command>"
},
"name": "execute_command_streaming"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Shell command to execute with streaming output. | |
| working_directory | No | Working directory for the command. | |
| timeout_seconds | No | Overall timeout in seconds. 0 = use configured default. | |
| environment | No | Additional environment variables as a dict. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |