ct_exec
Run commands inside LXC containers with dry-run planning, confirmation, and optional snapshot for undo.
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 | ||
| command | Yes | ||
| confirm | No | ||
| snapshot | No | ||
| 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 |