guest_script
Executes a script inside a VMware guest VM through VMware Tools, requiring guest credentials and an interpreter such as cmd.exe or /bin/sh.
Instructions
Run a script inside the guest (vmrun runScriptInGuest; interpreter e.g. c:\windows\system32\cmd.exe or /bin/sh). Requires VMware Tools + credentials.
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": {
"vmx": "<vmx>",
"interpreter": "<interpreter>",
"script": "<script>"
},
"name": "guest_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vmx | Yes | ||
| script | Yes | ||
| no_wait | No | ||
| guest_user | No | ||
| timeout_ms | No | ||
| interactive | No | ||
| interpreter | Yes | ||
| guest_password | No |