pve_export_terraform
Exports a live Proxmox VM or container specification into a ready-to-run Terraform or OpenTofu .tf block, so you can convert existing infrastructure into reusable code.
Instructions
Export the complete live specification of a VM or container into a ready-to-run Terraform / OpenTofu (.tf) block.
Args: vmid: Target VM or LXC Container ID. node: Optional node name.
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": {
"vmid": "<vmid>"
},
"name": "pve_export_terraform"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | No | ||
| vmid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |