Module gui

Module gui 

Source
Expand description

GUI Control Tool

Provides a stub tool that the agent can invoke to control the frontend UI. When invoked, the backend validates the action and the frontend intercepts the start of the tool to update its UI state seamlessly.

§Tools

  • gui_control: dispatches a synthetic event that the frontend uses for UI layout.

Structs§

GuiControlRequest
Request payload for GUI control
GuiControlResponse
Response payload for GUI control

Enums§

GuiAction
Supported GUI actions

Functions§

execute_gui_control
Process a GUI control request. Since the actual UI mutation happens on the frontend when it intercepts the tool call, the backend’s job is simply to validate and return a success message.