Toolkit

Smart Button Click

Finds the best visible button-like control for a stated goal and clicks it.

What It Does

Smart Button Click is the button-finding layer for pages where selectors drift or multiple controls look similar. You give it a short goal and it chooses the most likely visible action.

How It Works

  • Extracts visible button-like controls from the page, optionally including iframe content.
  • Filters to buttons, button roles, and button-like inputs such as submit controls.
  • Sends a compact candidate list plus the user goal to the LLM.
  • Gets back exactly one click step, preserving locator and iframe metadata when available.
  • Executes that step through the workflow bridge and can optionally wait for navigation.

Best For

  • Pages with multiple similar buttons
  • Flows where selectors are unstable
  • Actions such as Next, Continue, Apply, Submit, Finish, or Confirm

Behavior Notes

  • It is designed to avoid destructive actions unless the goal clearly asks for them.
  • It works best when the stated goal is short and specific.
  • If no strong match exists, it can return a no-op wait step instead of forcing a bad click.