secure_run_command
Execute commands securely by restricting to a predefined set of allowed commands, with options for working directory, timeout, environment variables, and auto-commit of changes.
Instructions
Execute a command with security restrictions (only allowed commands)
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": "secure_run_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Command to execute securely | |
| cwd | No | Working directory | |
| timeout | No | Command timeout in milliseconds | |
| env | No | Environment variables | |
| commitResult | No | Auto-commit changes after successful execution | |
| commitMessage | No | Custom commit message if commitResult is true |