Run guest code
relay_codeExecute inline JavaScript, TypeScript, or Python code as a single recorded operation in a disposable VM, with automatic evidence capture.
Instructions
Run inline guest code as this call's single recorded operation. Evidence is automatic, as for relay_exec, whose optional reason, step, snapshots and timeoutMs it shares. Requires code (up to 1 MiB) and language (javascript, typescript or python).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | 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. | |
| language | 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. |