// A module's tool entrypoint, as the runtime imports one: registers and returns. import { registerModuleTools } from "@novox/mesh-sdk/tools"; registerModuleTools("shop", () => [ { name: "price", description: "what something costs", input: { of: { type: "string", description: "the thing" } }, run: async (args) => ({ of: args.of ?? "nothing", cost: 12 }), }, { name: "refund", description: "give it back", input: {}, run: async () => ({ done: true }) }, ]);