command_exec
Execute whitelisted safe commands on servers. Read-only commands run immediately; others require confirmation for safety.
Instructions
执行白名单内的安全命令(只读命令直接执行,非只读命令需确认)
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": "command_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | 执行目录(相对项目根目录) | |
| command | Yes | 要执行的命令 |