import { createTool } from "@mastra/core/tools";
export const xxxTool = createTool({
id: xxxxxx
description:
"xxxxxx",
inputSchema: z.object({
path: z
.string()
.describe(
"Path to the file ",
),
}),
outputSchema: z.object({
success: z.boolean(),
error: z.string().optional().describe("Error message if deletion failed"),
}),
execute: async ({ context, runtimeContext }) => {
xxxxxx
});
import { createTool } from "@mastra/core/tools";
export const xxxTool = createTool({
id: xxxxxx
description:
"xxxxxx",
inputSchema: z.object({
path: z
.string()
.describe(
"Path to the file ",
),
}),
outputSchema: z.object({
success: z.boolean(),
error: z.string().optional().describe("Error message if deletion failed"),
}),
execute: async ({ context, runtimeContext }) => {
xxxxxx
});