> For the complete documentation index, see [llms.txt](https://docs.avoautomation.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avoautomation.com/avo-assure/actions/desktop/iris/common-iris-keywords/get-text-iris-1.md).

# Get Text IRIS

This is a pre-built action available under the **Captured Element** from the **Desktop Application** using the **IRIS method**. The functionality of this action in Avo Assure to get text from the IRIS object and save the result in the output variable. 

### **Syntax**

**Input Value:** `<options>`

| Argument                           | Description                                                                                                                                                                                                  |
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <p>\<options></p><p>(Optional)</p> | <p>Specially this field is usually left <strong>empty</strong>, but it supports <strong>optional instructions</strong> to modify how the text is retrieved.</p><p>Options supported - Trim, Formatting .</p> |

**Output value:**

| Argument                                    | Description                                                     |
| ------------------------------------------- | --------------------------------------------------------------- |
| <p>\<Dynamic Variable></p><p>(Required)</p> | This dynamic variable holds the retrieved text from object      |
| <p>\<Dynamic Variable></p><p>(Optional)</p> | This dynamic variable holds the status as **True** or **False** |

**Example 1**

**Fetches the text content of the specified IRIS object with additional options**

The **Get Text IRIS** action takes the value from the Input Value column (e.g., **Trim**) and retrieves the text of the captured object while applying the selected option (e.g., trimming leading and trailing spaces). The result of the action is stored in the **{GetTextIris}** variable as (**Login Button**)

<figure><img src="/files/ROKuQcRkwFINinhR2R4b" alt=""><figcaption></figcaption></figure>

**Example 2**

**Fetches the text content of the specified IRIS object without additional options**

**Fetches the text content of the specified IRIS object**\
The **Get Text IRIS** action takes no input value and retrieves the visible text from the selected IRIS object on the screen. The result of the action is stored in the **{Get Text}** variable as (**Login**)

<figure><img src="/files/VgyYBhAf2pOTRCJjRmNB" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/AU9hhKaOBwIPMI7aRRJo" alt="" width="375"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.avoautomation.com/avo-assure/actions/desktop/iris/common-iris-keywords/get-text-iris-1.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
