Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:AIPexStudio AIPex Snapshot Text Search

From Leeroopedia
Knowledge Sources
Domains Text_Search, Browser_Automation
Last Updated 2026-10-24 12:00 GMT

Overview

A search technique over formatted accessibility tree text that supports OR queries, glob patterns, and context-windowed result formatting for efficient element discovery.

Description

When an AI agent needs to find elements on a page, sending the entire formatted snapshot may be too large. Snapshot Text Search allows the agent to query the snapshot text with patterns: pipe (`|`) for OR terms, glob characters (`*?[]{}`) for pattern matching, and configurable case sensitivity. Results are returned with configurable context lines around matches, grouped by proximity, with matched lines marked by `✓`. This provides a compact, targeted view of the page for the LLM rather than the full tree.

Usage

Use this principle when the full snapshot is too large for the model's context, or when the agent needs to find specific elements by text content. It is the primary discovery tool for UID-based interaction.

Theoretical Basis

query = "Submit|Save|Confirm"  → OR search for any term
query = "button*Cancel"         → glob pattern match

Result:
  ✓ button "Submit" uid=42
  → div "form-container"
  ----
  ✓ button "Save" uid=57

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment