#436·LaVague

Adding a Visual Navigation Engine using Set of Marks to possible Navigation Engine

Author: dhuynh95Created Jul 12, 2024Updated Mar 16, 2026
Labelsnew featureActionEngine

Recent discussion with the community highlighted the interest in having a Navigation Engine able to choose elements from visual inputs.

As a reminder from our docs, we proceed in two ways today:

image

  1. The user's global objective is handled by the World Model. It considers this objective along with the state of the webpage through screenshots and HTML code, and generate the next step, aka. text instruction, needed to achieve this objective.

  2. This instruction is sent to the ActionEngine, which then generates the automation code needed to perform this step and executes it.

  3. The World Model then receives new text and image data, aka. a new screenshot and the updated source code, to reflect the updated state of the web page. With this information, it is able to generate the next instruction needed to achieve the objective.

  4. This process repeats until the objective is achieved.

Today, the Action Engine has 3 parts:

image

  1. Navigation Engine: Generates and executes Selenium code to perform an action on a web page
  2. Python Engine: Generates and executes code for tasks that do not involve navigating or interacting with a web page, such as extracting information
  3. ️ Navigation Control: Performs frequently required navigation tasks without needing to make any extra LLM calls. So far we cover: scroll up, scroll down & wait

The current Navigation Engine, which does the bulk of the effort, use RAG on the current DOM to generate the next action.

Following the proposal, we could split this in two:

  • DOM Navigation Engine: the current one
  • Visual Navigation Engine: the proposed one that uses Set of Marks where we highlight interactive elements and ask a MLLM to choose the right one

@adeprez : this seems fairly straightforward. We already have code to get the interactive elements. We should just provide a screenshot after we highlight all of those and then ask a MLLM to output the ID.

Can you share more details for others to take this one?

To do:

  • Provide code to get a screenshot of all interactive elements with ID
  • Ask MLLM to choose which one is the best
  • Map the ID to an action