select_text
Select a specific substring within an element's text content on any desktop app to format, copy, or replace text precisely.
Instructions
Select a substring within an element's text content.
Finds the text within the element and applies a native text
selection over that range. Works on editable fields and document
bodies on all backends. On web content (CDP) and Windows (UIA)
also works on read-only containers such as articles and sections.
Useful for formatting, copying, or replacing specific text.
Args:
element_id: The element ID containing the text.
text: The exact substring to select.
occurrence: Which occurrence to select (1 = first, 2 = second, etc.).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| element_id | Yes | ||
| text | Yes | ||
| occurrence | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |