pve_agent_file_read
Read a file from a Proxmox VM guest using the qemu-agent, returning its content and byte count.
Instructions
READ-ONLY: read a file from inside the guest via the qemu-agent.
Requires PROXIMO_ENABLE_AGENT=1, the VMID in PROXIMO_AGENT_ALLOWLIST, and a running guest agent inside the VM. No confirm needed — read-only. File path must be absolute. To write instead use pve_agent_file_write. Returns {"bytes-read": int, "content": str} — text round-trips exactly; the ledger records only the file path, never the content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Absolute path of the file to read inside the guest. | |
| node | No | Proxmox node name hosting the guest; auto-detected if omitted. | |
| vmid | Yes | Numeric VM ID of the guest to read from via the qemu-agent. | |
| proximo_target | No | Which configured Proxmox target to run this call against — a target name from your multi-target config (a specific PVE/PBS/PMG/PDM box). Omit to use the single/default target from the environment; the selection applies only to this call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |