continue-custom/core/tools/definitions/readCurrentlyOpenFile.ts
Dallin Romney c12bc10b8d tweaks
2025-03-26 17:11:19 -07:00

21 lines
671 B
TypeScript

import { Tool } from "../..";
import { BUILT_IN_GROUP_NAME, BuiltInToolNames } from "../builtIn";
export const readCurrentlyOpenFileTool: Tool = {
type: "function",
displayTitle: "Read Currently Open File",
wouldLikeTo: "read the current file",
isCurrently: "reading the current file",
hasAlready: "viewed the current file",
readonly: true,
group: BUILT_IN_GROUP_NAME,
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, try using this",
parameters: {
type: "object",
properties: {},
},
},
};