ui_read_text
Extracts text from UI elements by trying multiple accessibility strategies and reports which one succeeded. Falls back to visible descendant text for CLR type names.
Instructions
Read text content from a UI element using multi-strategy extraction.
Tries 5 strategies in order: ValuePattern → TextPattern → Name → LegacyIAccessible → visible text descendants. The response includes which strategy provided the text (source field).
When the primary text looks like a CLR type name (e.g., "Namespace.Class"), automatically falls back to visible descendant text.
Args: automation_id: AutomationId property name: Element's Name/Title property root_id: Optional AutomationId to scope search to a subtree xpath: Optional XPath expression (FlaUI backend only)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| automation_id | No | ||
| name | No | ||
| root_id | No | ||
| xpath | No |