Renders a discrete interactive button that copies associated text or code to the clipboard.
| Surface | Note |
|---|---|
| meet-stage | Clipboard API operations are blocked or unsupported. |
| googlechat | Hidden entirely — interactive buttons not supported in message layouts. |
| JavaScript clipboard actions fail completely in client sandboxes. |
| Field | Type | |
|---|---|---|
| text_to_copy | string. The raw string content sent to clipboard when clicked. | required |
{
"type": "copy_code_button",
"text_to_copy": "Text to copy"
}
{
"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"
]
}
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 →