run_command_in_guest
Runs a program inside a VMware guest OS via VMware Tools, enabling agents to execute guest commands with arguments, optional non-blocking or interactive launch, and timeout control.
Instructions
Run an executable inside the guest OS via VMware Tools (runProgramInGuest).
Args: vm: VM name, substring, or full .vmx path. program_path: Absolute path to the executable inside the guest OS. args: Optional list of program arguments. guest_user: Guest OS username. guest_password: Guest OS password (masked in logs/responses). no_wait: Return immediately without waiting for the program to exit. interactive: Launch in the interactive desktop session. timeout: Subprocess timeout in 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": {
"vm": "<vm>",
"program_path": "<program_path>"
},
"name": "run_command_in_guest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm | Yes | ||
| args | No | ||
| no_wait | No | ||
| timeout | No | ||
| guest_user | No | ||
| interactive | No | ||
| program_path | Yes | ||
| guest_password | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||