batch_exec
Run a shell command on multiple servers simultaneously. Filter servers by tag or name to target specific groups.
Instructions
在多台服务器上同时执行同一命令。
参数:
- command: 要执行的 Shell 命令
- tag: 按标签筛选服务器,如"prod"、"api"
- servers: 指定服务器名列表,如["生产-API主服务器", "测试环境"]
- confirmed: 写操作时需确认后传 True
tag 和 servers 至少填一个。
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": "batch_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| command | Yes | ||
| servers | No | ||
| confirmed | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |