Copy file or directory from host to Parallels guest
vm_copy_to_guestCopy a file or entire directory from your Mac host to a specified path inside a Parallels VM, automatically creating parent folders. Works for Windows, Linux, and macOS guests with an optional timeout.
Instructions
Stream a file or entire directory from the host into a guest path.
Works across Windows, Linux, and macOS guests using direct stream execution. Creates parent directories in the guest if they do not exist.
Args: vm: The VM name or UUID. host_path: Path on the host filesystem (file or directory). guest_path: Destination path inside the guest (e.g. "C:\temp\file.txt" or "/tmp/dir"). user: Optional guest user to run file extraction as. timeout_s: Transfer timeout in seconds (default: 300s).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm | Yes | ||
| user | No | ||
| host_path | Yes | ||
| timeout_s | No | ||
| guest_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vm | Yes | ||
| uuid | Yes | ||
| bytes | Yes | ||
| source | Yes | ||
| message | Yes | ||
| destination | Yes |