# Click using description
await grounded(
action="click",
element_description="the blue login button at the top",
screenshot_b64=current_screenshot,
)
# Scroll at element
await grounded(
action="scroll",
element_description="the main content area",
scroll_x=0,
scroll_y=-100,
screenshot_b64=current_screenshot,
)
# Drag between elements
await grounded(
action="drag",
start_element_description="the file icon",
end_element_description="the trash folder",
screenshot_b64=current_screenshot,
)
# No grounding needed for these
await grounded(action="type", text="Hello!")
await grounded(action="keypress", keys=["ctrl", "s"])