Skip to main content
JevBrowserPlanner recommends a next step from actions your driver already observed and checks whether the page version still matches. Use it when you own the browser driver and want only semantic selection.

Example: a refund policy page refreshes during judgment

A user needs the refund deadline. Your driver can see the policy section and JEV can recommend reading it, but a refresh can change a candidate’s location or meaning during judgment. Assign pageVersion to the observed snapshot and check it before and after selection. If it changes, the planner returns STALE_PAGE. Observe again rather than executing the old proposal.

1. Convert visible targets into candidates

Candidates must come from actual observation. This interface supports only READ, SCROLL, WAIT, DONE and BLOCKED; it does not click, type or submit.

2. Recheck the version after selection

Configure selector as in Candidate classification. browser.currentPageVersion() stands for your driver’s API, not a framework method. The final false means the host has not verified completion; even a recommendation of DONE cannot establish success.

3. Decide whether to execute

validFor means only that an action exists and the page version matches. Observe only in SHADOW. When adopting a proposal, bind the version check and execution in the same driver operation to avoid a race.

Run and verify

Set JEV_CP using the example build instructions, then run:
The offline example recommends policy on the current page, returns STALE_PAGE after a page change, and COMPLETION_NOT_VERIFIED without independent evidence. It starts no browser and executes no action, so it cannot measure browser task success. JevApplicationScenarios source

Abstention and full execution

No selection, uncertain candidates or judgment failure yield ABSTAIN. Duplicate action IDs and an empty page version are invalid arguments. The selector supplies the budget and mode; cancellation stops the subscription. To have AgentScope perform read-only navigation, record actual actions and independently verify outcomes, use the browser execution tool.