copy_file_guest_to_host
Copy a file from a guest OS to the host machine, with automatic creation of missing destination directories. Use it to retrieve guest files for host-side analysis, backup, or processing without manual transfer.
Instructions
Copy a file from the guest OS to the host (CopyFileFromGuestToHost).
Args: vm: VM name, substring, or full .vmx path. guest_path: Source file path inside the guest OS. host_path: Destination file path on the host (parent dirs created automatically). guest_user: Guest OS username. guest_password: Guest OS password (masked in logs/responses).
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>",
"guest_path": "<guest_path>",
"host_path": "<host_path>"
},
"name": "copy_file_guest_to_host"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm | Yes | ||
| host_path | Yes | ||
| guest_path | Yes | ||
| guest_user | No | ||
| guest_password | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||