Drive File Card

Single Drive file card — coloured file-type badge (DOC/XLS/PPT/PDF), file name, optional description, and an "Open →" button. Works on any surface using static name/mime/url fields. On GAS, file_id triggers live lookup via DriveApp to populate name and mime automatically.

Surfaces
apps-script-webmeet-stage
Fields
FieldType
file_idstring (gas-native). Drive file ID for live name/type lookup on GAS.required
namestring. File display name — required on non-GAS surfaces.required
mimestring. MIME type for badge colour (e.g. application/vnd.google-apps.spreadsheet).required
urlstring. URL to open — required on non-GAS surfaces.required
descriptionstring. Short description shown below the file name.optional
Example payload
{
  "type": "drive_file_card",
  "file_id": "File id",
  "name": "Drive File Card",
  "mime": "application/pdf",
  "url": "https://example.com"
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:drive_file_card",
  "displayName": "Drive File Card",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/drive_file_card",
  "capabilities": [
    "apps-script-web",
    "meet-stage"
  ],
  "description": "Single Drive file card \u2014 coloured file-type badge (DOC/XLS/PPT/PDF), file name, optional description, and an \"Open \u2192\" button. Works on any surface using static name/mime/url fields. On GAS, file_id triggers live lookup via DriveApp to populate name and mime automatically.",
  "representativeQueries": [
    "show a single Drive file card \u2014 static on all surfaces; live name/type lookup via file_id on GAS",
    "single drive file card \u2014 coloured file-type badge (doc/xls/ppt/pdf), file name, optional description",
    "render a drive file card"
  ]
}
← 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 →