Syntax-highlighted code block
| Field | Type | |
|---|---|---|
| language | string (optional, e.g. python, js, yaml) | optional |
| content | string | required |
{
"type": "code_block",
"content": "A concise description of the content."
}
{
"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"
]
}
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 →