Terminal Tool
terminal_toolExecute shell commands on the host machine and retrieve stdout, stderr, and exit code. Supports custom working directory and timeout settings for controlled execution.
Instructions
Run a shell command on the host and return stdout, stderr, and exit code.
The command is executed with the system shell. Use only in trusted environments.
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": "terminal_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | ||
| cwd | No | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |