Renders a discrete interactive button that copies associated text or code to the clipboard.
| Surface | Note |
|---|---|
| google-meet-stage | Clipboard API operations are blocked or unsupported. |
| google-chat | 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",
"google-apps-script-web",
"mcp-apps"
],
"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 an open-source Google Apps Script web app. 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 a2ui/apps-script-surface/gas-wired-renderer
clasp push && clasp deploy
Full deploy guide →