chore: openclaw plugins init tools
This commit is contained in:
commit
bb367eb952
7 files changed
+120
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import { Type } from "typebox";
|
||||
import { defineToolPlugin } from "openclaw/plugin-sdk/tool-plugin";
|
||||
|
||||
export default defineToolPlugin({
|
||||
id: "tools",
|
||||
name: "Tools",
|
||||
description: "Add Tools tools to OpenClaw.",
|
||||
tools: (tool) => [
|
||||
tool({
|
||||
name: "echo",
|
||||
description: "Echo input text.",
|
||||
parameters: Type.Object({
|
||||
input: Type.String({ description: "Text to echo." }),
|
||||
}),
|
||||
execute: async ({ input }) => ({ input }),
|
||||
}),
|
||||
],
|
||||
});
|
||||
Reference in new issue
Block a user