You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/tool.ts
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,30 +1,30 @@
1
1
consttools: Record<string,ToolInfo>={
2
-
getSelection: {
3
-
name: "getSelection",
2
+
getSelectedText: {
3
+
name: "getSelectedText",
4
4
displayName: "Get Selected Text",
5
5
description:
6
6
"Get the user's current selected text content on the document.",
7
7
schema: {
8
8
type: "function",
9
9
function: {
10
-
name: "getSelection",
10
+
name: "getSelectedText",
11
11
description:
12
-
"getSelection() -> str - Get the user's current selected text content on the document, no parameter is needed.\\n\\n Returns:\\n str: The user's current selected text content on the document.",
12
+
"getSelectedText() -> str - Get the user's current selected text content on the document, no parameter is needed.\\n\\n Returns:\\n str: The user's current selected text content on the document.",
"Replace the user's current selected text content on the document with new text content.",
22
22
schema: {
23
23
type: "function",
24
24
function: {
25
-
name: "replaceSelection",
25
+
name: "replaceSelectedText",
26
26
description:
27
-
"replaceSelection(newText: str) - Replace the user's current selected text content on the document with new text content.\\n\\n Args:\\n newText (str): New text content to replace the user's current selected text content.",
27
+
"replaceSelectedText(newText: str) - Replace the user's current selected text content on the document with new text content.\\n\\n Args:\\n newText (str): New text content to replace the user's current selected text content.",
description: "Add some text content to the end of the document.",
38
+
appendTextToDocument: {
39
+
name: "appendTextToDocument",
40
+
displayName: "Append Text To Document",
41
+
description: "Append text content to the end of the document.",
42
42
schema: {
43
43
type: "function",
44
44
function: {
45
-
name: "appendText",
45
+
name: "appendTextToDocument",
46
46
description:
47
-
"appendText(text: str) - Add some text content to the end of the document.\\n\\n Args:\\n text (str): Text content to be added to the end of the document.",
47
+
"appendTextToDocument(text: str) - Add some text content to the end of the document.\\n\\n Args:\\n text (str): Text content to be added to the end of the document.",
0 commit comments