gx - Ghostty terminal control and scripting CLI tool
CLI tool for controlling Ghostty terminals, reading scrollback, sending input, and managing windows, tabs, and splits.
Tags
Updated: 2026-09-14Capabilities
Typical Inputs
Typical Outputs
What this skill does
- List terminal surfaces
- Read terminal scrollback text
- Send text to terminal
- Send keypress to terminal
- Approve or deny prompts
- Interrupt running commands
- Spawn windows and tabs
- Split and close terminals
Inputs
- Terminal target UUID or ID
- Command text or keystroke
- Initial working directory path
Outputs
- Terminal list with UUIDs
- Terminal scrollback content
- Accessibility tree debug dump
- Created terminal surface UUID
Requirements
- Ghostty version 1.3 or higher
- macOS Accessibility permission
- Compiled gx binary on PATH
