Quick start readText() Read plain text from the browser clipboard. Options that select a target page and configure the operation. The page to target. Defaults to the active page.
writeText() Write plain text to the browser clipboard. Options that select a target page and configure the operation. The page to target. Defaults to the active page.
Resolves after the clipboard operation completes.
clear() Clear the browser clipboard. Options that select a target page and configure the operation. The page to target. Defaults to the active page.
Resolves after the clipboard operation completes.
paste() Paste the clipboard contents into the active element. Options that select a target page and configure the operation. The page to target. Defaults to the active page.
options.shortcut 'ControlOrMeta+V' | 'Meta+V' | 'Control+V'
The keyboard shortcut to dispatch.
Resolves after the clipboard operation completes.
copy() Copy the current selection to the browser clipboard. Options that select a target page and configure the operation. The page to target. Defaults to the active page.
Resolves after the clipboard operation completes.
cut() Cut the current selection to the browser clipboard. Options that select a target page and configure the operation. The page to target. Defaults to the active page.
Resolves after the clipboard operation completes.
Quick start read_text() Read plain text from the browser clipboard. The page to target. Defaults to the active page.
write_text() Write plain text to the browser clipboard. The page to target. Defaults to the active page.
Resolves after the clipboard operation completes.
clear() Clear the browser clipboard. The page to target. Defaults to the active page.
Resolves after the clipboard operation completes.
paste() Paste the clipboard contents into the active element. The page to target. Defaults to the active page.
shortcut Literal['ControlOrMeta+V', 'Meta+V', 'Control+V']
The keyboard shortcut used to paste.
Resolves after the clipboard operation completes.
copy() Copy the current selection to the browser clipboard. The page to target. Defaults to the active page.
Resolves after the clipboard operation completes.
cut() Cut the current selection to the browser clipboard. The page to target. Defaults to the active page.
Resolves after the clipboard operation completes.
Quick start Every method takes a context.Context first. Methods with options accept a pointer options struct; pass nil for defaults. ReadText() Read plain text from the browser clipboard. Options that select a target page. Pass nil to use the active page. The page to target. Defaults to the active page.
The clipboard text and any operation error.
WriteText() Write plain text to the browser clipboard. Options that select a target page. Pass nil to use the active page. The page to target. Defaults to the active page.
Returns nil after the clipboard operation completes.
Clear() Clear the browser clipboard. Options that select a target page. Pass nil to use the active page. The page to target. Defaults to the active page.
Returns nil after the clipboard operation completes.
Paste() Paste the clipboard contents into the active element. Options that select a target page and configure the operation. Pass nil for defaults. The page to target. Defaults to the active page.
options.Shortcut *ContextClipboardPasteParamsShortcut
The keyboard shortcut to dispatch: ContextClipboardPasteParamsShortcutControlOrMetaV, ContextClipboardPasteParamsShortcutMetaV, or ContextClipboardPasteParamsShortcutControlV.
Returns nil after the clipboard operation completes.
Copy() Copy the current selection to the browser clipboard. Options that select a target page. Pass nil to use the active page. The page to target. Defaults to the active page.
Returns nil after the clipboard operation completes.
Cut() Cut the current selection to the browser clipboard. Options that select a target page. Pass nil to use the active page. The page to target. Defaults to the active page.
Returns nil after the clipboard operation completes.