continue-custom/core/tools/viewDiff.ts
2024-11-20 14:00:57 -08:00

17 lines
366 B
TypeScript

import { Tool } from "..";
export const viewDiffTool: Tool = {
type: "function",
action: async (args, extras) => {
const diff = await extras.ide.getDiff(true);
return diff;
},
function: {
name: "view_diff",
description: "View the current diff of working changes",
parameters: {
type: "object",
properties: {},
},
},
};