Run a guest script
relay_scriptRun a guest script file in a staged VM, auto-recording evidence for a single operation. Provide host path and language (JavaScript, TypeScript, Python); supports step, reason, snapshots, timeout.
Instructions
Run one guest script file as this call's single recorded operation. Evidence is automatic, as for relay_exec, whose optional reason, step, snapshots and timeoutMs it shares. Requires localPath (a host file path) and language (javascript, typescript or python); it runs under the staged workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| language | Yes | ||
| localPath | Yes | ||
| 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. |