执行命令
exec_commandExecute workspace commands with configurable working directory, environment variables, shell, and timeout. Use argv arrays for direct execution; high-risk commands require interactive approval.
Instructions
在工作区执行前台命令。优先传 argv 数组;字符串命令通过系统 shell 执行。高风险命令通过 interactive_feedback 审批。
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": "exec_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | . | |
| env | No | ||
| shell | No | ||
| stdin | No | ||
| command | Yes | ||
| timeout_ms | No |