Use x711 as a Mastra tool.
npm i x711 @mastra/core
import { createTool } from "@mastra/core";
import { z } from "zod";
import { refuel } from "x711";
export const x711Tool = createTool({
id: "x711-fuel",
description: "Fuel any agent capability via x711.",
inputSchema: z.object({ tool: z.string(), query: z.string() }),
execute: async ({ context }) => refuel(context),
});
curl -X POST https://x711.io/api/onboard \
-H 'Content-Type: application/json' \
-d '{"name":"my-mastra-agent","framework":"mastra"}'
All templates