Run a guest command
relay_execRun one guest command in a disposable VM while automatically capturing before/after snapshots as recorded evidence. Supports optional step metadata, reason, timeout, and diagnostic mode for repairs.
Instructions
Run one guest command (argv) as one recorded operation; never hide several interactions in one call. Evidence is automatic: the relay snapshots the display before and after and records a step derived from the command. Optional reason (intent, never authorization), step (id, title, expected, inputMode) and snapshots.afterIntervalMs (default 500 ms) enrich or tune the record; consecutive keystrokes may form an explicit text group with snapshots.group (first/member/last). timeoutMs bounds execution (default 120000, up to 3600000). The result carries the outcome, bounded stdout/stderr and the after-snapshot inline. A refused, uncertain or nonzero result keeps the VM; never replay input whose effect is uncertain. diagnostic: true records a diagnosis or repair without snapshots, even before relay_stage; it is never visual verification, and its result has one output field with stdout and stderr combined.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| argv | Yes | ||
| step | No | Optional step record overrides; any field left out is derived from the call. | |
| reason | No | Optional intent, retained as evidence. Default: derived from the call. | |
| snapshots | No | Optional. Consecutive keystrokes may form an explicit text group (first/member/last); only first gets a before-snapshot and only last an after-snapshot. | |
| timeoutMs | No | Execution timeout in milliseconds, default 120000, maximum 3600000. Independent of snapshot delay and lease TTL. | |
| diagnostic | No | Explicit command diagnosis or repair without screenshot evidence, including before staging. Commands and outcomes remain recorded. Never claim visual verification. |