type field and type-specific properties. Steps are executed sequentially in the order they appear in the steps array.
launch
Starts a terminal program. Typically the first step in any recording.Must be
"launch".The shell command to execute. Must be non-empty.
type
Types text into the terminal, simulating keyboard input.Must be
"type".The text to type.
Typing speed multiplier. Must be a positive number. Higher values mean faster typing.
press
Sends a single key press to the terminal.Must be
"press".The key to press. Must be non-empty. Common values:
Enter, Tab, Escape, Backspace, ArrowUp, ArrowDown, ArrowLeft, ArrowRight, Ctrl+C, Ctrl+D.wait
Waits for specific text to appear in the terminal output before continuing.Must be
"wait".The text pattern to wait for. Pass a plain string for exact matching, or an object with
regex and optional flags for regular expression matching.Maximum time to wait in milliseconds. Must be non-negative. If not specified, falls back to the config-level
defaultWaitTimeout, or waits indefinitely.pause
Pauses execution for a fixed duration.Must be
"pause".Duration to pause in milliseconds. Must be non-negative.
scroll
Scrolls the terminal view.Must be
"scroll".Scroll direction.
Number of lines to scroll. Must be a positive integer.
click
Clicks on text matching a pattern in the terminal.Must be
"click".Text pattern to click on. Must be non-empty.
screenshot
Takes a screenshot at the current point in the recording.Must be
"screenshot".Output file path for the screenshot. Must be non-empty.
resize
Resizes the terminal dimensions mid-recording.Must be
"resize".New number of columns. Must be a positive integer.
New number of rows. Must be a positive integer.
set-env
Sets an environment variable in the terminal session.Must be
"set-env".Environment variable name. Must start with a letter or underscore and contain only letters, numbers, or underscores.
Value to assign to the environment variable.
Include Steps
You can include steps from external files using the$include directive:
$include value is a path to another JSONC file containing step definitions.