select_text
Select a substring within an element's text content to format, copy, or replace specific text. Specify the exact text and choose which occurrence to select.
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. Useful for formatting, copying,
or replacing specific text within a document or text field.
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 |