Skip to main content

Module ui

Module ui 

Source
Expand description

UI automation and window capture.

Functionsยง

call ๐Ÿ”’
capture_blacked_out ๐Ÿ”’
The capture, with an AgentMux windowโ€™s private and secret panes blacked out (window_blackout): srv asks the windows for their rectangles just before the frame and just after, and anything that doesnโ€™t match refuses it.
capture_masks ๐Ÿ”’
Every windowโ€™s answer to one ask of srvโ€™s capture_mask.
container_media_dir ๐Ÿ”’
Where a container agentโ€™s copies of screenshots and recordings go: its own temp folder.
post_shortcuts ๐Ÿ”’
POST to /api/v1/ui/shortcuts/{route} and return the responseโ€™s data.
prune_old_media ๐Ÿ”’
Delete the PNGs and GIFs in dir that are older than the capture retention. Best effort.
record_text ๐Ÿ”’
What UIRecord tells the agent. A finished recording is on srvโ€™s machine; a container agent gets its own copy (srv sends the bytes when asked) and the message names that path instead of the hostโ€™s.
region_arg ๐Ÿ”’
The region argument of a screenshot: x, y, width and height in CSS pixels, or none.
run_capture_window ๐Ÿ”’
run_discover_windows ๐Ÿ”’
run_list_shortcuts ๐Ÿ”’
run_press_keys ๐Ÿ”’
run_reset_shortcuts ๐Ÿ”’
reset: one command, or every command, back on its defaults.
run_run_command ๐Ÿ”’
run_set_shortcut ๐Ÿ”’
bind: give a command exactly these keys. The page refuses what an agent may not do and says what is in the way.
run_ui_click ๐Ÿ”’
run_ui_query ๐Ÿ”’
run_ui_record ๐Ÿ”’
run_ui_screenshot ๐Ÿ”’
save_local_copy ๐Ÿ”’
Write base64 (a file srv sent inline) to a new <dir>/<id>.<ext> and return its path. Files older than an hour that were written here go too, so the folder does not only grow.
scale_arg ๐Ÿ”’
The scale argument of a screenshot: device pixels per CSS pixel, or none. Not a number is a mistake, not a default.
screenshot_text ๐Ÿ”’
What UIScreenshot tells the agent. srv wrote the PNG on its own machine, so a container agent, which cannot read that path, gets its own copy in the container (from the bytes srv sent along) and is told that path instead: the one its file tools read and files on Tasks and Message can pass on.
shortcut_edit_said ๐Ÿ”’
What a change to the personโ€™s shortcuts says: what changed, or why not and what is in the way.