> ## Documentation Index
> Fetch the complete documentation index at: https://docs.simular.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# ClipboardContent

> Snapshot of the clipboard's text and/or image content, as returned by [] and [] — what the clipboard held before that write replaced it.

Snapshot of the clipboard's text and/or image content, as returned by
\[`Machine.setClipboardString`] and \[`Machine.setClipboardImage`] — what
the clipboard held *before* that write replaced it.

Nothing is restored automatically. To put a snapshot back, write its
fields with \[`Machine.setClipboardImage`] /
\[`Machine.setClipboardString`] — but note the platform clipboards
replace the **whole** selection on every write, so a snapshot holding
both formats can only have one of them restored (pick the image if in
doubt; that is also what \[`Machine.pasteText`]'s internal restore does).

## Constructor

```typescript
ClipboardContent(): ClipboardContent
```

### Returns

`ClipboardContent`

## Properties

<ResponseField name={"image"} type={"null | Image"} required>
  The clipboard's image content (8-bit RGBA, see
  \[`Machine.getClipboardImage`]), when it had image data.
</ResponseField>

<ResponseField name={"text"} type={"null | string"} required>
  The clipboard's string content, when it had string data.
</ResponseField>
