Skip to content

Commit

Permalink
feat: rename tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Neet-Nestor committed Oct 13, 2024
1 parent dacd6b6 commit b9a3827
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ export const getAvailableTools = () => {
console.error("[Web Agent Interface] No tools found for the current page");
};

export * as Overleaf from './page/overleaf';
export * as Overleaf from "./page/overleaf";
6 changes: 3 additions & 3 deletions src/page/overleaf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class PageHandler implements IPageHandler {
}

export const availableTools: ToolName[] = [
"getSelection",
"replaceSelection",
"appendText",
"getSelectedText",
"replaceSelectedText",
"appendTextToDocument",
];
6 changes: 3 additions & 3 deletions src/tool.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const tools: Record<string, ToolInfo> = {
getSelection: {
name: "getSelection",
name: "getSelectedText",
displayName: "Get Selected Text",
description:
"Get the user's current selected text content on the document.",
Expand All @@ -15,7 +15,7 @@ const tools: Record<string, ToolInfo> = {
},
},
replaceSelection: {
name: "replaceSelection",
name: "replaceSelectedText",
displayName: "Replace Selected Text",
description:
"Replace the user's current selected text content on the document with new text content.",
Expand All @@ -36,7 +36,7 @@ const tools: Record<string, ToolInfo> = {
},
},
appendText: {
name: "appendText",
name: "appendTextToDocument",
displayName: "Append New Text",
description: "Add some text content to the end of the document.",
schema: {
Expand Down

0 comments on commit b9a3827

Please sign in to comment.