{ "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 TUI tools?" }, { "role": "assistant", "content": "\nTUI tools — control the opencode terminal user interface. Inject text, show notifications, open dialogs.\n\n\nThe TUI tools control the opencode terminal user interface on a target host. 10 tools:\n\n**Input control:**\n- **tui_inject** — append text to the TUI prompt input field. Does not submit.\n- **tui_submit** — submit the current prompt. Triggers the agent to process whatever text is in the input.\n- **tui_clear** — clear the prompt input field.\n\n**Notifications:**\n- **tui_toast** — show a toast notification in the TUI. Accepts title, message, and variant (info, success, warning, error).\n\n**Dialogs:**\n- **tui_open_help** — open the help dialog.\n- **tui_open_models** — open the model selector.\n- **tui_open_sessions** — open the session selector.\n- **tui_open_themes** — open the theme selector.\n\n**Advanced:**\n- **tui_command** — execute a TUI command (e.g. agent_cycle).\n- **tui_publish** — publish a custom event to the TUI event bus with arbitrary JSON data.\n\nThese are primarily used for cross-session orchestration — one agent can inject a prompt into another session's TUI, show notifications to the user, or programmatically switch models." } ] }