View as Markdown

API reference: @salmonui/chat/smart-paste

SmartPasteRequestinterface

import type { SmartPasteRequest } from '@salmonui/chat/smart-paste';
interface SmartPasteRequest {
    readonly clipboardText: string;
    readonly fields: readonly SmartPasteField[];
}

What the adapter receives: the pasted text and the field descriptors, never other page data.

SmartPasteRequest members (2)
NameSignatureDescription
clipboardTextreadonly clipboardText: string;
fieldsreadonly fields: readonly SmartPasteField[];