remote_swarm_exec
Broadcast a single command to every session in a swarm for parallel execution, returning aggregated output from all remote targets.
Instructions
Broadcast a command to all sessions in a swarm (parallel execution).
Returns aggregated output from all targets. Use for running the same command across multiple machines.
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": {
"swarmId": "<swarmId>",
"command": "<command>"
},
"name": "remote_swarm_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Command to execute on all targets | |
| swarmId | Yes | Swarm ID | |
| parallel | No | Execute in parallel (default: true). Set false for sequential. | |
| waitTime | No | Override wait time (ms). Uses smart-wait if not provided. | |
| stopOnError | No | Stop on first error when running sequentially |