Back to Skills

tools

Registers LLM tools and renders custom tool-call UI in assistant-ui (@assistant-ui/react). Use when adding frontend-only tools with makeAssistantTool / useAssistantTool (browser actions like clipboard, navigation, localStorage, async-generator streaming, AbortSignal), rendering backend AI SDK tool() calls with makeAssistantToolUI / useAssistantToolUI (status.type running/complete/incomplete/requires-action, args, result, artifact via ToolCallMessagePartProps), building generative UI from tool re

16stars2forksUpdated 6/12/2026

Security Assessment

Medium Risk(65/100)

Detected risks:

Secret Exposure([references/mcp-server.md] TOKEN=)
Sensitive File Access([references/mcp-server.md] .env)
Security Score65/100

About tools

The tools skill provides guidance for registering LLM tools and rendering custom tool-call user interfaces in assistant-ui. It helps developers connect tool execution with UI presentation so that tool calls, statuses, arguments, and results are displayed correctly in chat experiences. The skill addresses common integration problems such as tool UIs not rendering, tools not being invoked, mismatched tool names, or tool results not appearing in the interface. It covers both frontend-only browser tools and backend tools executed through AI SDK integrations, ensuring that tool behavior and visualization remain synchronized.

Key capabilities include creating frontend tools with makeAssistantTool or useAssistantTool, rendering tool results with makeAssistantToolUI or useAssistantToolUI, and connecting backend AI SDK tool() calls to custom interfaces. The skill explains how tool execution status is represented through status.type values such as running, complete, incomplete, and requires-action. It also covers generative UI patterns that build interfaces from tool results, registration of tool components inside AssistantRuntimeProvider, and the case-sensitive toolName matching required to associate a tool with its UI. Additional guidance includes human-in-the-loop workflows, approval patterns, result handling, and resume flows that incorporate user interaction into tool execution.

This skill is intended for developers building applications with assistant-ui and AI-powered chat interfaces. Common use cases include browser actions such as clipboard operations, navigation, and local storage access, displaying custom visualizations for backend tool results, implementing approval or confirmation workflows, and creating interactive generative UI experiences. It is especially useful for teams troubleshooting tool integration issues or designing rich tool-driven user experiences.

FAQ

When should I use makeAssistantTool versus AI SDK tool()?

Use makeAssistantTool for frontend-only browser actions and AI SDK tool() for backend tool execution. Both can be paired with makeAssistantToolUI for custom rendering.

How are tool results displayed in the UI?

Tool results can be rendered through makeAssistantToolUI, which receives properties such as args, result, and status through tool call render props.

Why is my tool UI not rendering?

A common requirement is that the toolName used by the tool and the UI component must match exactly, including case sensitivity, and the tool UI must be registered within AssistantRuntimeProvider.

Can this skill support approval or human-in-the-loop workflows?

Yes. The documented patterns include approval flows, adding results, resuming with human context, and handling requires-action states.

What frameworks or libraries does this skill target?

The skill is designed for assistant-ui, particularly the @assistant-ui/react package, and includes integration patterns for AI SDK tools.

All Files

8 files
references/make-tool.md5.6 KB
View
references/tool-ui.md7.0 KB
View
references/generative-ui.md10.6 KB
View
references/mcp-server.md6.2 KB
View
references/toolkits.md5.9 KB
View
references/human-in-loop.md9.1 KB
View
references/registry-components.md8.6 KB
View
SKILL.md5.5 KB
View

Install tools

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill