# get_clipboard_image

> **Function** in `deepagents_cli`

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

Attempt to read an image from the system clipboard.

Supports macOS via `pngpaste` or `osascript`.

## Signature

```python
get_clipboard_image() -> ImageData | None
```

## Returns

`ImageData | None`

ImageData if an image is found, None otherwise.

---

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