esxi_guest_upload
Uploads a local file to a specified remote path inside an ESXi/vCenter guest VM through VMware Tools, using the VM alias and guest credentials.
Instructions
Upload a file into the guest via Tools (govc guest.upload).
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": {
"alias": "<alias>",
"vm": "<vm>",
"local_path": "<local_path>",
"remote_path": "<remote_path>"
},
"name": "esxi_guest_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm | Yes | ||
| alias | Yes | ||
| guest_user | No | ||
| local_path | Yes | ||
| remote_path | Yes | ||
| guest_password | No |