Plugins(プラグイン)の仕組み / Plugins Architecture
- 日本語
- English
- 简体中文
🔌 AIに「手足」を生やすプラグイン
OpenClawのAIエージェントは、デフォルトでは「テキストを読んで、テキストを返す(ターミナル上で)」ことしかできません。 しかし、現実の業務をこなすには、Gmailを受信する、Discordに画像を投稿する、Evernoteを検索するといった、外部サービスと直接やり取りする「手足」が必要です。
これが**Plugin(プラグイン)**の役割です。
flowchart LR;
LLM(AIの脳) <-->|MCP (Model Context Protocol)| Plugin[プラグイン];
Plugin <--> Gmail[Gmail API];
Plugin <--> Discord[Discord Webhook];
Plugin <--> GitHub[GitHub API];
Skill と Plugin の違いは?
- Skill(スキル): 「やり方(ワークフロー)」を教えるマニュアルです(例:要約のフォーマット)。中身は主にMarkdown(プロンプト)です。
- Plugin(プラグイン): 「新しい物理的な機能」を追加する機材です。中身はバックエンドのプログラムコード(Node.js や Python)であり、API通信を可能にします。
Model Context Protocol (MCP) とは?
OpenClawのプラグインは、業界の標準規格である**「MCP (Model Context Protocol)」**に強くインスパイアされ、準拠しています。これにより、AIは「今どんなプラグインが使えて、それぞれにどんな引数(データ)を渡せばいいのか」を自分自身で理解し、適宜呼び出すことができます。
🔌 Giving the AI "Hands and Feet"
By default, an OpenClaw AI agent can only "read text and return text (in a terminal)." However, to accomplish real-world business tasks, it needs "hands and feet" that interact directly with external services—such as fetching Gmail, posting images to Discord, or querying Evernote.
This is the role of a Plugin.
flowchart LR;
LLM(AI Brain) <-->|MCP (Model Context Protocol)| Plugin[Plugin Engine];
Plugin <--> Gmail[Gmail API];
Plugin <--> Discord[Discord Webhook];
Plugin <--> GitHub[GitHub API];
What's the difference between a Skill and a Plugin?
- Skill: A manual that teaches "how to do it (workflow)" (e.g., a specific summary format). Its core is mostly Markdown (prompts).
- Plugin: Equipment that adds a "new physical capability." Its core is real backend programming code (Node.js or Python) that enables actual API communication.
What is Model Context Protocol (MCP)?
OpenClaw plugins are heavily inspired by and compliant with the emerging industry standard called "MCP (Model Context Protocol)." This allows the AI to autonomously understand "what plugins are currently available to me, and what arguments (data) do I need to pass to them," seamlessly invoking them as needed.
🔌 为 AI 赋予“手脚”的插件系统
在默认状态下,OpenClaw AI 代理只能在终端里“读取文本并回复文本”。 但是,为了能够接管现实世界的复杂业务,它必须拥有一双能够直接与外部服务交互的“手脚”——比如接收 Gmail 邮件、向 Discord 频道发送图片,或者在 Evernote 中搜索资料。
这就是 Plugin(插件) 肩负的使命。
flowchart LR;
LLM(AI 大脑) <-->|MCP (上下文协议)| Plugin[系统插件];
Plugin <--> Gmail[Gmail API 服务];
Plugin <--> Discord[Discord Webhook];
Plugin <--> GitHub[GitHub API];
Skill 与 Plugin 之间有什么区别?
- Skill(技能):是教导 AI “如何做事(工作流)”的操作手册(例如:规范摘要输出的格式)。其核心内容主要是 Markdown 文本(提示词)。
- Plugin(插件):是为系统增添“全新物理交互能力”的硬件设备。其核心是由开发语言(如 Node.js 或 Python)编写的后端通信代码,负责打通外部 API。
Model Context Protocol (MCP) 是什么?
OpenClaw 的插件系统深度借鉴并兼容了新兴的行业技术标准 “MCP (Model Context Protocol)”。得益于该协议,AI 能够自行洞察“我现在手头上有哪些插件可以使用,以及需要向它们传递什么样参数(数据)”,并在需要时极其自然地调用它们为您服务。