# copy_selection_to_clipboard

> **Function** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/clipboard/copy_selection_to_clipboard)

Copy selected text from app widgets to clipboard.

This queries all widgets for their text_selection and copies
any selected text to the system clipboard.

## Signature

```python
copy_selection_to_clipboard(
    app: App,
) -> None
```

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/a827cddf72d72e4b17921b8eb445a3bfb0511cb4/libs/cli/deepagents_cli/clipboard.py#L46)