vm_guest_upload
Upload a file from your local machine to a VMware virtual machine using VMware Tools.
Instructions
[WRITE] Upload a file from local machine to a VM via VMware Tools.
Requires VMware Tools running in the guest OS.
Args: vm_name: Target VM name. local_path: Local file path to upload. guest_path: Destination path inside the guest. username: Guest OS username (default "root"). password: Guest OS password. target: Optional vCenter/ESXi target name from config.
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_name": "<vm_name>",
"local_path": "<local_path>",
"guest_path": "<guest_path>"
},
"name": "vm_guest_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| vm_name | Yes | ||
| password | No | ||
| username | No | root | |
| guest_path | Yes | ||
| local_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |