Tool lifecycle UI components for React/Next.js from ui.inference.sh. Display tool calls: pending, progress, approval required, results. Capabilities: tool st...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install tools-ui或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install tools-ui⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/tools-ui/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: tools-ui description: "Tool lifecycle UI components for React/Next.js from ui.inference.sh. Display tool calls: pending, progress, approval required, results. Capabilities: tool status, progress indicators, approval flows, results display. Use for: showing agent tool calls, human-in-the-loop approvals, tool output. Triggers: tool ui, tool calls, tool status, tool approval, tool results," agent tools, mcp tools ui, function calling ui, tool lifecycle, tool pending ---
Tool lifecycle components from ui.inference.sh.
npx shadcn@latest add https://ui.inference.sh/r/tools.json
| State | Description | |-------|-------------| | pending | Tool call requested, waiting to execute | | running | Tool is currently executing | | approval | Requires human approval before execution | | success | Tool completed successfully | | error | Tool execution failed |
import { ToolCall } from "@/registry/blocks/tools/tool-call"
<ToolCall
name="search_web"
args={{ query: "latest AI news" }}
status="running"
/>
import { ToolResult } from "@/registry/blocks/tools/tool-result"
<ToolResult
name="search_web"
result={{ results: [...] }}
status="success"
/>
import { ToolApproval } from "@/registry/blocks/tools/tool-approval"
<ToolApproval
name="send_email"
args={{ to: "[email protected]", subject: "Hello" }}
onApprove={() => executeTool()}
onDeny={() => cancelTool()}
/>
import { ToolCall, ToolResult, ToolApproval } from "@/registry/blocks/tools"
function ToolDisplay({ tool }) {
if (tool.status === 'approval') {
return (
<ToolApproval
name={tool.name}
args={tool.args}
onApprove={tool.approve}
onDeny={tool.deny}
/>
)
}
if (tool.result) {
return (
<ToolResult
name={tool.name}
result={tool.result}
status={tool.status}
/>
)
}
return (
<ToolCall
name={tool.name}
args={tool.args}
status={tool.status}
/>
)
}
<ToolCall
name="read_file"
args={{ path: "/src/index.ts" }}
status="running"
className="border-blue-500"
/>
Tools automatically get icons based on their name:
| Pattern | Icon | |---------|------| | search, find | Search | | read, get | File | | write, create | Pencil | | delete, remove | Trash | | send, email | Mail | | Default | Wrench |
The Agent component handles tool lifecycle automatically:
import { Agent } from "@/registry/blocks/agent/agent"
<Agent
proxyUrl="/api/inference/proxy"
config={{
core_app: { ref: 'openrouter/claude-sonnet-45@0fkg6xwb' },
tools: [
{
name: 'search_web',
description: 'Search the web',
parameters: { query: { type: 'string' } },
requiresApproval: true, // Enable approval flow
},
],
}}
/>
# Full agent component (recommended)
npx skills add inference-sh/skills@agent-ui
# Chat UI blocks
npx skills add inference-sh/skills@chat-ui
# Widgets for tool results
npx skills add inference-sh/skills@widgets-ui
Component docs: ui.inference.sh/blocks/tools
安装 Tools Ui 后,可以对 AI 说这些话来触发它
Help me get started with Tools Ui
Explains what Tools Ui does, walks through the setup, and runs a quick demo based on your current project
Use Tools Ui to lifecycle UI components for React/Next
Invokes Tools Ui with the right parameters and returns the result directly in the conversation
What can I do with Tools Ui in my general tools workflow?
Lists the top use cases for Tools Ui, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/tools-ui/ 目录(个人级,所有项目可用),或 .claude/skills/tools-ui/(项目级)。重启 AI 客户端后,用 /tools-ui 主动调用,或让 AI 根据上下文自动发现并使用。
Tools Ui 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Tools Ui 可免费安装使用。请查阅仓库了解许可证信息。
Tool lifecycle UI components for React/Next.js from ui.inference.sh. Display tool calls: pending, progress, approval required, results. Capabilities: tool st...
Tools Ui 属于「General Tools」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my general tools tasks using Tools Ui
Identifies repetitive steps in your workflow and sets up Tools Ui to handle them automatically