Code Snippet Pair

Renders two distinct code snippets side-by-side or stacked, without

Surfaces
webgoogle-meet-stagegoogle-apps-script-webmcp-apps
Degraded on
SurfaceNote
google-chatRenders code snippets stacked vertically instead of side-by-side.
emailRenders code snippets stacked vertically instead of side-by-side.
Fields
FieldType
left_codestringrequired
right_codestringrequired
languagestringrequired
left_labelstringrequired
right_labelstringrequired
Example payload
{
  "type": "code_snippet_pair",
  "left_code": "Left code",
  "right_code": "Right code",
  "language": "json",
  "left_label": "Left label",
  "right_label": "Right label"
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:code_snippet_pair",
  "displayName": "Code Snippet Pair",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/code_snippet_pair",
  "capabilities": [
    "web",
    "google-meet-stage",
    "google-apps-script-web",
    "mcp-apps"
  ],
  "description": "Renders two distinct code snippets side-by-side or stacked, without",
  "representativeQueries": [
    "show a two code blocks side by side without diff highlighting diff highlighting",
    "renders two distinct code snippets side-by-side or stacked, without",
    "render a code snippet pair"
  ]
}
← Full ARD catalog
Deploy your own Google Apps Script renderer

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 →