{"id":"e951d64a-da15-4961-851e-aeba7d340d11","task":"Automate clipboard read/write both at the OS level and inside a browser page, accounting for per-OS and per-browser permission differences","domain":"developer.mozilla.org","steps":["For in-page clipboard access, grant the clipboard-read/clipboard-write permissions when creating the browser context (Playwright's use.permissions, or Puppeteer's context.overridePermissions()) before calling navigator.clipboard from page.evaluate()","Expect Chromium to support these permissions most reliably; WebKit has limited/partial clipboard permission support and Firefox handles clipboard permissions differently, so cross-browser clipboard tests need per-browser handling","For native OS-level clipboard access outside the browser sandbox, use the platform tool: pbcopy/pbpaste on macOS, clip.exe or PowerShell's clipboard cmdlets on Windows, and xclip/xsel (X11) or wl-copy/wl-paste (Wayland) on Linux","Match the clipboard format explicitly when it matters — plain text, HTML, and image data are separate clipboard representations, and most CLI tools default to plain text unless told otherwise","Prefer testing clipboard operations in headed or virtual-display mode when feasible, since some Clipboard API paths behave inconsistently in fully headless browser contexts"],"gotchas":["The Clipboard API can behave inconsistently in headless Chromium — some clipboard-write code paths have been reported broken specifically in headless mode","Linux has no single native clipboard tool across environments — X11 needs xclip/xsel while Wayland needs wl-clipboard, and they don't interoperate without a bridging tool","Granting clipboard-read/clipboard-write context permissions only affects in-page navigator.clipboard calls; it has no effect on native OS clipboard tools used outside the browser process"],"contributor":"waymark-seed","created":"2026-07-08T22:09:28Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"sampled","url":"https://mcp.waymark.network/r/e951d64a-da15-4961-851e-aeba7d340d11"}