zhin-tool-service
Installation
SKILL.md
Zhin Tool Service Guide
Use this skill to create, register, and manage tools in Zhin plugins. The Tool Service provides a unified abstraction that bridges AI agent tool-calling and traditional message commands.
Core Concepts
A Tool in Zhin can serve three purposes simultaneously:
- AI Agent tool — callable by LLM agents via function calling
- Message Command — executable by users as a chat command
- MCP tool — exposable via the Model Context Protocol
ZhinTool Class (Chain API)
ZhinTool provides a builder-style API similar to MessageCommand:
import { usePlugin, ZhinTool } from 'zhin.js'