exec
Runs a single shell command on a specified remote connection, with server-side blocking of dangerous commands and heavy operations on cluster login nodes.
Instructions
在远程连接上执行单条 shell 命令。危险命令与集群登录节点重操作会被服务端拒绝。
Args: connection: 连接 label(见 connection_list) command: 要执行的 shell 命令 timeout: 超时秒数(默认 60)
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": {
"connection": "<connection>",
"command": "<command>"
},
"name": "exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| timeout | No | ||
| connection | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||