select_text
Select text within a text element or place the cursor before or after it. Provide exact text from the accessibility tree, with optional prefix or 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 |