ct_exec
Execute commands inside LXC containers with dry-run planning, fail-closed safety, and optional auto-undo snapshots.
Instructions
Run a command inside an LXC (ssh -> pct exec). MUTATION-CAPABLE.
Dry-run by default: without confirm=True you get a PLAN — the command plus a heuristic read-vs-write / destructive-pattern classification (advisory only) — recorded to the ledger. Re-call with confirm=True to execute. Disabled unless PROXIMO_ENABLE_EXEC is set (safe default is API-only). Allowlist-scoped (fail-closed) and audited.
snapshot=True (UNDO): take an auto-undo snapshot first and WAIT for it; if it can't be made
(e.g. storage doesn't support snapshots) the command is NOT run (fail-closed). On success the
result carries an undo_point you can revert with pve_rollback.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ctid | Yes | Numeric CTID of the target LXC container (allowlist-scoped). | |
| command | Yes | Argv list to run inside the container (not a shell string). | |
| confirm | No | False (default) returns a dry-run PLAN; true executes. | |
| snapshot | No | Take a fail-closed auto-undo snapshot before running. | |
| 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 |