select_text
Selects text within an app's UI by matching accessibility tree text, or positions the cursor before/after it, using optional prefix/suffix to disambiguate.
Instructions
Select text inside a text element, or place the text cursor before or after it. Provide text exactly as it appears in the accessibility tree, including any Markdown formatting. If the text is not unique, provide surrounding prefix or suffix text to disambiguate it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | App name or bundle identifier | |
| text | Yes | Target text as shown in the accessibility tree | |
| prefix | No | Optional text immediately before the target, used to disambiguate repeated matches | |
| suffix | No | Optional text immediately after the target, used to disambiguate repeated matches | |
| selection | No | Whether to select the text or place the cursor before or after it. Defaults to text. | |
| element_index | Yes | Text element identifier |