import type { AnyAgentTool, SophiaClawPluginApi, SophiaClawPluginToolFactory, } from "../../src/plugins/types.js"; import { createLobsterTool } from "./src/lobster-tool.js"; export default function register(api: SophiaClawPluginApi) { api.registerTool( ((ctx) => { if (ctx.sandboxed) { return null; } return createLobsterTool(api) as AnyAgentTool; }) as SophiaClawPluginToolFactory, { optional: true }, ); }