{ "messages": [ { "role": "system", "content": "You are a helpful AI assistant with access to tools. Use tools when they help answer the user's question. Be concise and accurate." }, { "role": "user", "content": "What are the kitty terminal tools for?" }, { "role": "assistant", "content": "\nKitty tools — interact with the kitty terminal emulator's panes/tabs/windows. Different from PTY — kitty controls the existing terminal UI.\n\n\nThe kitty tools interact with the kitty terminal emulator running on the local machine. They let you read from, write to, and manage existing terminal panes. Six tools:\n\n- **kitty_ls** — list all kitty windows, tabs, and panes. Returns full topology: pane IDs, titles, foreground command, cwd, and focus state. Use this first to discover pane IDs.\n- **kitty_read** — read text content from a kitty pane. Captures the visible screen buffer or full scrollback. Optionally tail N lines.\n- **kitty_write** — send text to a kitty pane as if typed at the keyboard. Append `\\r` for Enter in shell panes.\n- **kitty_send_key** — send keystrokes: Enter, Ctrl+C, Escape, Tab, arrow keys, etc. Use after kitty_write to submit commands in TUI applications.\n- **kitty_launch** — launch a new pane in kitty. Can target a specific tab, set title, run a command, or open in a directory.\n- **kitty_focus** — focus a window or tab, bringing it to foreground.\n\nThese are for interacting with the operator's existing terminal environment — reading what's on screen, sending input to running processes, launching new panes alongside existing work. Different from PTY tools which create new isolated terminal sessions." } ] }