Interactive button that executes a custom Google Apps Script server function when clicked, showing a loading spinner and returning/displaying the function result. Works on Google Apps Script only.
| Field | Type | |
|---|---|---|
| label | string. The button text. | required |
| function_name | string. The name of the server-side V8 JavaScript function to call. | required |
| argument | string. Optional string argument to pass to the function. | optional |
{
"type": "script_run_button",
"label": "Script Run Button",
"function_name": "Function name"
}
{
"identifier": "urn:air:a2uicatalog.ai:atom:script_run_button",
"displayName": "Script Run Button",
"type": "application/vnd.a2ui.atom+json",
"url": "https://a2uicatalog.ai/atoms/script_run_button",
"capabilities": [
"apps-script-web"
],
"description": "Interactive button that executes a custom Google Apps Script server function when clicked, showing a loading spinner and returning/displaying the function result. Works on Google Apps Script only.",
"representativeQueries": [
"show a button to trigger server-side Apps Script function",
"interactive button that executes a custom google apps script server function when clicked, showing a",
"render a script run 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 →