> For the complete documentation index, see [llms.txt](https://dreetje-1.gitbook.io/inbox-ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dreetje-1.gitbook.io/inbox-ai/actions/built-in-actions/system-actions/get-selected-text.md).

# Get Selected Text

{% hint style="info" %}
This is an imperfect solution due to Inbox AI being a sandboxed app on the AppStore, it cannot be improved while remaining on the AppStore.
{% endhint %}

Attempts to get the selected text from the screen. It does this by simulating a CMD+C keypress and reading the result of the clipboard. If this fails, or is empty, the result will be "NO SELECTED TEXT FOUND".

This command automatically has it [Next Action Field](/inbox-ai/actions/next-action-field.md) set to [Return Result to Previous AI](/inbox-ai/actions/built-in-actions/flow-control/return-result-to-previous-ai.md).
