Code Block

Syntax-highlighted code block

Surfaces
apps-script-web
Fields
FieldType
languagestring (optional, e.g. python, js, yaml)optional
contentstringrequired
Example payload
{
  "type": "code_block",
  "content": "A concise description of the content."
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:code_block",
  "displayName": "Code Block",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/code_block",
  "capabilities": [
    "apps-script-web"
  ],
  "description": "Syntax-highlighted code block",
  "representativeQueries": [
    "show a syntax-highlighted code block",
    "render a code block"
  ]
}
← 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 →