TOON token-efficient context format
Generated from
mcp/patterns.registry.json— do not edit by hand; change the registry and runbun run patterns:build.
Index card — the docs below are the canonical explanation; deep-tier pattern pages additionally carry invariants and emulation notes.
Category: AI · Tier: light · Risk: medium — external LLM providers with quota limits
A compact, TOON-style serialization packs structured context data for LLM prompts more densely than JSON, currently implemented as a hand-rolled layout rather than the external @toon-format/toon library.
When to use: Use when prompt context is large structured/tabular data and token budget for the call is tight.
Docs
Code
Machine-readable record: ai-toon-format in mcp/patterns.registry.json.