You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Serialize the live DOM into a numbered, LLM-friendly tree where each interactable element gets a stable index. The LLM acts by index, not by selector — drastically reduces hallucinated selectors.
Why we want it
Foundation for our observe/extract/act API. Every modern agent framework has this. Without it, our LLM layer is hopelessly behind.
Source
MITcodeFeature we want
Serialize the live DOM into a numbered, LLM-friendly tree where each interactable element gets a stable index. The LLM acts by index, not by selector — drastically reduces hallucinated selectors.
Why we want it
Foundation for our
observe/extract/actAPI. Every modern agent framework has this. Without it, our LLM layer is hopelessly behind.Acceptance criteria
src/serialize/dom_tree.tsexposesserializeForLLM(page) -> {tree, indexMap}data-testidif presentTHIRD_PARTY_NOTICES.mdupdatedcloned from Browser-Use@<sha>Reference
See
COMPETITIVE_STRATEGY.mdfor the full doctrine.