Loading...
Loading...
Use when the user asks you to look at, read, check, or fix something in another Ghostty pane, split, tab, or window; to open, split, or close Ghostty panes or tabs; to run a command in a separate pane and watch its output; or to send keys or text to another terminal. Drives Ghostty's native AppleScript API on macOS, no tmux and no screenshots.
npx skill4agent add vuon9/skills use-ghosttyscripts/ghostty.jsG=scripts/ghostty.js # resolve against this skill's folder; it is executable
$G ls # id w<window>:t<tab> flags title cwdls>*$G read 481aw1:t2ls✳ <session name>user@host:dirsendkey$G read <id> # visible screen
$G read <id> --all --tail 200 # scrollback + screen, last 200 lines
$G wait <id> 'PASS|FAIL' --timeout 120 # poll the screen until the regex matches, prints itwrite_*_file:copy$G send <id> 'make test' --enter # types as a paste, then presses enter
$G key <id> c --mods control # Ctrl-C; keys: enter, escape, tab, up, a, ...
$G split <id> right --cwd ~/repo --cmd 'npm run dev' --wait-after # prints new pane id
$G tab --near <id> --cwd ~/repo # new tab in that pane's window, prints new pane id
$G window --input $'git status\n' # new window, initial input typed after launch
$G focus <id>
$G close <id> # also close-tab <id>, close-window <id>
$G action <id> <ghostty-action> # any keybind action, e.g. clear_screen, toggle_split_zoom--cmd--wait-after--input $'cmd\n'read <id> --tail 20lesscloseclose-tabclose-windowsendwaitread