Ai Build Trace

Token usage and model trace card — shows Gemini call stats inline on a page

Surfaces
apps-script-web
Fields
FieldType
modelstring (optional, e.g. gemini-2.5-flash)optional
prompt_tokensintegeroptional
thinking_tokensintegeroptional
output_tokensintegeroptional
total_tokensintegeroptional
Example payload
{
  "type": "ai_build_trace"
}
ARD catalog entry
{
  "identifier": "urn:air:a2uicatalog.ai:atom:ai_build_trace",
  "displayName": "Ai Build Trace",
  "type": "application/vnd.a2ui.atom+json",
  "url": "https://a2uicatalog.ai/atoms/ai_build_trace",
  "capabilities": [
    "apps-script-web"
  ],
  "description": "Token usage and model trace card \u2014 shows Gemini call stats inline on a page",
  "representativeQueries": [
    "show a Gemini token usage trace card",
    "token usage and model trace card \u2014 shows gemini call stats inline on a page",
    "render a ai build trace"
  ]
}
← 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 →