Execute a command in WSL (use read-only tools when possible)
execute_commandExecute commands in Windows Subsystem for Linux environments with security validation to prevent shell injection and dangerous operations.
Instructions
Execute a command in WSL (use read-only tools when possible)
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 | Command to execute | |
| working_dir | No | Working directory | |
| timeout | No | Timeout (ms) |