execute_command
Run shell commands in a specified directory with configurable timeout and working directory, providing safe execution with directory restrictions and detailed logging.
Instructions
在指定文件夹中执行命令。默认目录: /app
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": "execute_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | 要执行的命令(shell 命令) | |
| timeout | No | 超时时间(秒),默认30秒 | |
| working_dir | No | 工作目录的路径(可选,默认: /app) |