json-render

Render AI SDK v6 UIMessage parts as structured React elements.

2|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/NagyVikt/codex-plugins --skill json-render-nagyvikt
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: json-render
Source: https://github.com/NagyVikt/codex-plugins/tree/main/plugins/vercel/skills/json-render
Command: npx skills add https://github.com/NagyVikt/codex-plugins --skill json-render-nagyvikt

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill resolves the issue of raw JSON or malformed output appearing in chat interfaces by providing a structured approach to rendering AI SDK v6 message parts, including text, tool calls, and reasoning.

Core Features & Use Cases

  • Message Part Iteration: Provides patterns to correctly iterate through UIMessage parts instead of rendering raw content.
  • Tool Result Visualization: Offers a template for creating human-readable cards for tool outputs, replacing raw JSON blobs.
  • Streaming State Management: Includes logic to handle streaming states and tool call lifecycle events like approval requests or output availability.

Quick Start

Use the json-render skill to implement a custom message component that iterates through message parts and renders tool results as structured cards.

Frequently Asked Questions about json-render

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I render AI SDK v6 UIMessage parts in a React chat interface?

To render AI SDK v6 UIMessage parts in a React chat interface, you iterate through the message objects to map text, tool invocations, and reasoning steps into safe, structured React elements instead of displaying raw JSON.

Why does my React chat UI show raw JSON when streaming AI SDK tool calls?

Your React chat UI shows raw JSON because it lacks structured message part iteration. You need to parse the UIMessage parts and render tool outputs as human-readable cards to avoid malformed output during streaming.

What is the best way to visualize tool results from AI SDK v6 in a chat UI?

The best way to visualize tool results from AI SDK v6 in a chat UI is to use a structured rendering template that transforms raw tool output blobs into human-readable cards within your custom React components.

How do I handle streaming states and tool call lifecycle events in a React chat component?

To handle streaming states and tool call lifecycle events in a React chat component, implement logic that tracks approval requests and output availability, updating the UI safely as the AI SDK v6 message parts stream.

Can I use json-render to display reasoning steps alongside text and tool calls?

Yes, you can use json-render to display reasoning steps alongside text and tool calls. It standardizes the rendering of all AI SDK v6 UIMessage parts within your custom React chat interface.

Do I need custom React components to map complex AI SDK message objects?

Yes, you need custom React components to map complex AI SDK message objects. This Skill provides the patterns to iterate through UIMessage parts and render them as user-friendly elements rather than raw content.