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

# api.Clipboard

> Чтение и запись буфера обмена

## Методы

```js theme={null}
await api.Clipboard.read()       // → string
await api.Clipboard.write(text)  // → void
```

## Пример

```js theme={null}
BYM.register({ id: 'copy-track' }, (api) => ({
  start() {
    api.Hotkeys.register('Ctrl+Shift+C', async () => {
      const track = api.Player.getTrack();
      if (!track) return;
      await api.Clipboard.write(`${track.artist} — ${track.title}`);
      api.UI.toast('Скопировано', 1000);
    });
  },
  stop() {},
}));
```
