Select text
select_textSelect a character range inside a text element through the accessibility API to copy or replace part of a value. Changes only the selection, not the text.
Instructions
Select a character range inside a text element through the accessibility API, for example to copy part of a value or to replace just that part with type_text. Defaults to selecting from start to the end of the value. Use set_value to replace the whole value instead. Only the selection changes; the text is not modified.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start | No | Zero-based character offset to start the selection at (default 0) | |
| length | No | Number of characters to select (default: through the end of the value) | |
| element_id | Yes | Text element to select in, from get_app_state | |
| state_query | No | With return_state, list only elements whose role, label or value contains this text, like get_app_state's query | |
| return_state | No | After acting, wait briefly for the UI to settle and append a fresh get_app_state of the app you last read, so you can check the result and pick the next target in the same call. Its ids replace every earlier id. |