Remove interact verify endpoint
All checks were successful
python-syntax / syntax-check (push) Successful in 31s

This commit is contained in:
Space-Banane
2026-05-04 15:59:43 +02:00
parent f05e0c56e6
commit 22ca0097d1
8 changed files with 6 additions and 182 deletions

View File

@@ -58,26 +58,7 @@ def main():
)
click_text.raise_for_status()
click_data = click_text.json()["data"]
target = click_data["resolved_target"]
verify = requests.post(
f"{BASE_URL}/interact/verify",
headers=headers,
json={
"action": {"screen": SCREEN, "action": {"action": "click", "target": {"mode": "pixel", "x": target["x"], "y": target["y"]}}},
"verify": {
"type": "ocr_text_near_point",
"text": label,
"x": target["x"],
"y": target["y"],
"radius": 150,
"screen": SCREEN,
},
"timeout_ms": 1500,
},
timeout=30,
)
verify.raise_for_status()
print("verify:", verify.json()["data"]["verified"])
print("clicked:", click_data["resolved_target"])
if __name__ == "__main__":