Annotated Code

Code block with numbered yellow callout bubbles on specific lines,

Surfaces
webgoogle-meet-stagegoogle-apps-script-webmcp-apps
Degraded on
SurfaceNote
pdfcallout bubbles may not render inline — consider code + steps instead
Live preview
{  "type": "stat_card",  // [1]  "value": "1B+",      // [2]  "label": "daily executions"}
    Fields
    FieldType
    languagestringrequired
    codestringrequired
    captionstringoptional
    annotations[{'line': 'integer', 'text': 'string'}]required
    Example payload
    {
      "type": "annotated_code",
      "language": "json",
      "code": "{\"type\": \"example\"}",
      "annotations": 1
    }
    ARD catalog entry
    {
      "identifier": "urn:air:a2uicatalog.ai:atom:annotated_code",
      "displayName": "Annotated Code",
      "type": "application/vnd.a2ui.atom+json",
      "url": "https://a2uicatalog.ai/atoms/annotated_code",
      "capabilities": [
        "web",
        "google-meet-stage",
        "google-apps-script-web",
        "mcp-apps"
      ],
      "description": "Code block with numbered yellow callout bubbles on specific lines,",
      "representativeQueries": [
        "show a code block with numbered callout bubbles on specific lines explanation list below",
        "code block with numbered yellow callout bubbles on specific lines,",
        "render a annotated code"
      ]
    }
    ← 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 →