continue-custom/core/tools/definitions/readCurrentlyOpenFile.ts
2024-11-29 15:08:52 -08:00

18 lines
542 B
TypeScript

import { Tool } from "../..";
import { BuiltInToolNames } from "../builtIn";
export const readCurrentlyOpenFileTool: Tool = {
type: "function",
displayTitle: "Read Currently Open File",
wouldLikeTo: "read the current file",
readonly: true,
function: {
name: BuiltInToolNames.ReadCurrentlyOpenFile,
description:
"Read the currently open file in the IDE. If the user seems to be referring to a file that you can't see, this is probably it.",
parameters: {
type: "object",
properties: {},
},
},
};