bash
Execute shell commands on your local machine for file operations, system information, and CLI tools with support for streaming output and configurable timeout.
Instructions
在本地 shell(macOS/Linux: zsh/bash, Windows: cmd/powershell)中执行命令。支持流式输出。常用场景:文件操作、查看系统信息、运行 CLI 工具。
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": "bash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | 要执行的 shell 命令 | |
| cwd | No | 工作目录(可选,默认为调用进程的当前目录) | |
| timeout | No | 超时秒数(可选,默认 60) |