# Set focus

This is a pre-built action available under the **Captured Element** from the **Desktop Application**. The functionality of this action in Avo Assure is to set the focus on the specified element or object within the desktop application.

### Syntax

**Input Value:** `N/A`

<table><thead><tr><th valign="top">Argument </th><th valign="top">Description </th></tr></thead><tbody><tr><td valign="top">N/A</td><td valign="top">Not Applicable</td></tr></tbody></table>

**Output Value:**

| Argument                                                    | Description                                                                    |
| ----------------------------------------------------------- | ------------------------------------------------------------------------------ |
| \<Dynamic Variable>(Optional);\<Dynamic Variable>(Optional) | This dynamic variable holds the status of the action as **True** or **False.** |

**Example**

**Sets focus on the specified element**

The **Set focus** action does not require any input in the Input Value column. It brings the captured UI element into focus, allowing further interaction like typing or clicking.

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


---

# Agent Instructions: 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:

```
GET https://docs.avoautomation.com/avo-assure/actions/desktop/common-desktop/set-focus.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
