Observe
See how to use observe() to discover actionable elements and analyze web page structure
Method Signatures
- TypeScript
- Python
Parameters
Natural language description of elements or actions to discover.
Override the default LLM model for this observation.
Model-specific configuration options.
Maximum time to wait for DOM to stabilize before analysis.Default:
30000Whether to draw visual overlays on discovered elements (debugging).Default:
falseSet to
true to search within iframes.Default: falseResponse
Returns:Promise<ObserveResult[]>
Array of discovered actionable elements, ordered by relevance.
ObserveResult Interface:
XPath selector that precisely locates the element.
Human-readable description of the element and its purpose.
Suggested interaction method:
"click", "fill", "selectOptionFromDropdown", "nextChunk", "scrollTo", "prevChunk".Additional parameters for the suggested action.

