Skip to content

Commit b9a3827

Browse files
committed
feat: rename tools
1 parent dacd6b6 commit b9a3827

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ export const getAvailableTools = () => {
3232
console.error("[Web Agent Interface] No tools found for the current page");
3333
};
3434

35-
export * as Overleaf from './page/overleaf';
35+
export * as Overleaf from "./page/overleaf";

src/page/overleaf.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class PageHandler implements IPageHandler {
8787
}
8888

8989
export const availableTools: ToolName[] = [
90-
"getSelection",
91-
"replaceSelection",
92-
"appendText",
90+
"getSelectedText",
91+
"replaceSelectedText",
92+
"appendTextToDocument",
9393
];

src/tool.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const tools: Record<string, ToolInfo> = {
22
getSelection: {
3-
name: "getSelection",
3+
name: "getSelectedText",
44
displayName: "Get Selected Text",
55
description:
66
"Get the user's current selected text content on the document.",
@@ -15,7 +15,7 @@ const tools: Record<string, ToolInfo> = {
1515
},
1616
},
1717
replaceSelection: {
18-
name: "replaceSelection",
18+
name: "replaceSelectedText",
1919
displayName: "Replace Selected Text",
2020
description:
2121
"Replace the user's current selected text content on the document with new text content.",
@@ -36,7 +36,7 @@ const tools: Record<string, ToolInfo> = {
3636
},
3737
},
3838
appendText: {
39-
name: "appendText",
39+
name: "appendTextToDocument",
4040
displayName: "Append New Text",
4141
description: "Add some text content to the end of the document.",
4242
schema: {

0 commit comments

Comments
 (0)