cluster_bash
Execute bash commands with automatic routing to optimal cluster nodes based on load and command type, offloading heavy tasks and running simple commands locally.
Instructions
Execute bash command with automatic cluster routing.
Commands are automatically routed to optimal nodes based on:
Current cluster load (CPU, memory, load average)
Command characteristics (build/test/compile patterns)
Node capabilities (OS, architecture)
Heavy commands (make, cargo, pytest, docker, etc.) are automatically offloaded. Simple commands (ls, cat, echo) run locally for speed.
Parameters:
command (required): Bash command to execute
requires_os (optional): Force specific OS (linux/darwin)
requires_arch (optional): Force specific architecture (x86_64/arm64)
auto_route (optional): Enable auto-routing (default: true)
Returns execution result with node info and output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| auto_route | No | ||
| requires_os | No | ||
| requires_arch | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |