Private
Public Access
0
0

feat(api): Expand API hooks with drag and right_click actions

This commit is contained in:
2026-05-12 19:06:54 -04:00
parent d92361b025
commit a3b117dabd
4 changed files with 72 additions and 2 deletions
+12
View File
@@ -190,6 +190,18 @@ class ApiHookClient:
"""
return self.set_value(item, value)
def drag(self, src_item: str, dst_item: str) -> dict[str, Any]:
"""
Simulates a drag and drop operation.
"""
return self.push_event("drag", {"src_item": src_item, "dst_item": dst_item})
def right_click(self, item: str) -> dict[str, Any]:
"""
Simulates a right-click on an item.
"""
return self.push_event("right_click", {"item": item})
def get_gui_state(self) -> dict[str, Any]:
"""
Returns the full GUI state available via the hook API.