For the complete documentation index, see llms.txt. This page is also available as Markdown.

copyToClipboard

Copies specified text to the system clipboard.

Request Parameters

Parameter Name
Type
Required
Description

text

String

Yes

Supports copying text of unlimited length.

Response Parameters

None

Call Example

example.js
let payload = {
  text: "Hello World"
};

const response = await relayx.copyToClipboard(payload);
if (response.code === 200) {
  console.log("Text copied to clipboard");
}

Last updated