agent-web-tools - v0.3.0
    Preparing search index...

    Class AgentDOM

    Index

    Constructors

    Methods

    • Takes a snapshot that prioritizes certain DOM zones based on the hint. Focus zones get deeper traversal; non-focus zones stay shallow but still include interactable elements and the path to any focus zone.

      Parameters

      • hint: SnapshotHint

      Returns ToolResult<SnapshotElement>

    • Generate a unique CSS selector for an element, preferring stable attributes (id, data-testid, name) over positional selectors (nth-child).

      Parameters

      • el: Element

      Returns string