Copy Code Button

Renders a discrete interactive button that copies associated text or code to the clipboard.

Surfaces
webapps-script-web
Degraded on
SurfaceNote
meet-stageClipboard API operations are blocked or unsupported.
googlechatHidden entirely — interactive buttons not supported in message layouts.
emailJavaScript clipboard actions fail completely in client sandboxes.
Fields
FieldType
text_to_copystring. The raw string content sent to clipboard when clicked.required
Example payload
{
  "type": "copy_code_button",
  "text_to_copy": "Text to copy"
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:copy_code_button",
  "displayName": "Copy Code Button",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/copy_code_button",
  "capabilities": [
    "web",
    "apps-script-web"
  ],
  "description": "Renders a discrete interactive button that copies associated text or code to the clipboard.",
  "representativeQueries": [
    "show a button to copy specified text or code to clipboard",
    "renders a discrete interactive button that copies associated text or code to the clipboard.",
    "render a copy code button"
  ]
}
← Full ARD catalog Try it live →
Deploy your own renderer

The renderer is open source. Deploy your own instance in 4 commands — you own the URL, no dependency on the demo endpoint.

git clone https://github.com/a2uicatalog/a2ui
cd apps-script-surface/gas-schema-renderer
clasp push && clasp deploy
Full deploy guide →