> 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="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FMFwulIdsqhMBJdDd5ikE%2Fimage.png?alt=media&amp;token=649f546e-ee59-42e3-8dd2-b201aa893fe7" 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="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FHFAMGIHu1auDbtwnYhE4%2Fimage.png?alt=media&amp;token=5ea6472a-137f-450d-aa6e-0cab9ed8223a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2F88cWclXMHuaVduuzC6MK%2Fimage.png?alt=media&amp;token=b464b931-e504-41f8-b9f0-035f0c933b70" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
