Files
openclaw-plugin-tools/dist/index.js

18 lines
530 B
JavaScript

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 }),
}),
],
});