Elffuss BraidHub

kikocis/continue public

cfc91aa76b54 · 690 BRawPermalink
1import { Tool } from "../..";
2import { BUILT_IN_GROUP_NAME, BuiltInToolNames } from "../builtIn";
3
4export const readCurrentlyOpenFileTool: Tool = {
5 type: "function",
6 displayTitle: "Read Currently Open File",
7 wouldLikeTo: "read the current file",
8 isCurrently: "reading the current file",
9 hasAlready: "viewed the current file",
10 readonly: true,
11 isInstant: true,
12 group: BUILT_IN_GROUP_NAME,
13 function: {
14 name: BuiltInToolNames.ReadCurrentlyOpenFile,
15 description:
16 "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",
17 parameters: {
18 type: "object",
19 properties: {},
20 },
21 },
22};