Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Tool lifecycle UI components for React/Next.js from ui.inference.sh. Display tool calls: pending, progress, approval required, results. Capabilities: tool st...
Tool lifecycle UI components for React/Next.js from ui.inference.sh. Display tool calls: pending, progress, approval required, results. Capabilities: tool st...
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
Tool lifecycle components from ui.inference.sh.
npx shadcn@latest add https://ui.inference.sh/r/tools.json
StateDescriptionpendingTool call requested, waiting to executerunningTool is currently executingapprovalRequires human approval before executionsuccessTool completed successfullyerrorTool 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: "user@example.com", 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: PatternIconsearch*, find*Searchread*, get*Filewrite*, create*Pencildelete*, remove*Trashsend*, email*MailDefaultWrench
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
Adding Tools to Agents - Equip agents with tools Human-in-the-Loop - Approval flows Tool Approval Gates - Implementing approvals Component docs: ui.inference.sh/blocks/tools
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.