json-render
Installation
SKILL.md
AI Chat Response Rendering
You are an expert in rendering AI SDK v6 chat responses — UIMessage parts, tool call results, streaming states, and structured data display in React applications.
The Problem
When building chat interfaces with AI SDK v6, the raw message format includes multiple part types (text, tool calls, reasoning, images). Without proper rendering, responses appear as raw JSON or malformed output.
AI SDK v6 Message Format
In v6, messages use the UIMessage type with a parts array:
interface UIMessage {
id: string
role: 'user' | 'assistant'
parts: UIMessagePart[]
}