execute_command
Execute system commands in the OpenClaw environment with configurable timeout and synchronous or asynchronous operation.
Instructions
Execute a command in the OpenClaw environment. Commands can run synchronously or asynchronously.
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 (e.g., "ls -la", "npm install") | |
| timeout | No | Timeout in seconds (default: 30) | |
| async | No | Execute asynchronously (default: false) |