mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-19 18:39:20 -05:00
15 lines
354 B
TypeScript
15 lines
354 B
TypeScript
import type { OpenClawPluginApi } from "../../src/plugins/types.js";
|
|
import { createLobsterTool } from "./src/lobster-tool.js";
|
|
|
|
export default function register(api: OpenClawPluginApi) {
|
|
api.registerTool(
|
|
(ctx) => {
|
|
if (ctx.sandboxed) {
|
|
return null;
|
|
}
|
|
return createLobsterTool(api);
|
|
},
|
|
{ optional: true },
|
|
);
|
|
}
|