ui_read_text
Extract text from UI elements by sequentially testing Value, Text, Name, LegacyIAccessible, and descendant text strategies, reporting the source and falling 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 |
|---|---|---|---|
| name | No | ||
| xpath | No | ||
| root_id | No | ||
| automation_id | No |