Run a command
vm_execRun a command. Runs one command in a running VM as its user, with /bin/sh -lc, and answers its exit code and output. It opens no terminal. Use ?stream=1 for commands that run longer than about 90 seconds.
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": {
"vmId": "<vmId>",
"command": "<command>"
},
"name": "vm_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| env | No | ||
| vmId | Yes | ||
| stream | No | ||
| command | Yes | ||
| timeoutMs | No |