add tool webpage content tool description
John Bollenbacher committed
Jul 29, 2024 at 15:27 UTC
1518fd5d7202d56f51096be6fbaa16ec6c5475fb
1 file changed
+21
-1
prompts/agent.tools.md
+21
-1
@@ -62,6 +62,26 @@ Always verify memory by online.
62
}
63
~~~
64
65
+### webpage_content_tool:
66
+Retrieves the text content of a webpage, such as a news article or Wikipedia page.
67
+Provide a "url" argument to get the main text content of the specified webpage.
68
+This tool is useful for gathering information from online sources.
69
+Always provide a full, valid URL including the protocol (http:// or https://).
70
+
71
+**Example usage**:
72
+```json
73
+{
74
+ "thoughts": [
75
+ "I need to gather information from a specific webpage...",
76
+ "I will use the webpage_content_tool to fetch the content...",
77
+ ],
78
+ "tool_name": "webpage_content_tool",
79
+ "tool_args": {
80
+ "url": "https://en.wikipedia.org/wiki/Artificial_intelligence",
81
+ }
82
+}
83
+```
84
+
85
### memory_tool:
86
Manage long term memories. Allowed arguments are "query", "memorize", "forget" and "delete".
87
Memories can help you remember important details and later reuse them.
@@ -193,4 +213,4 @@ When writing own code, ALWAYS put print/log statements inside and at the end of
213
"code": "Y",
214
}
215
}
196
-~~~
\ No newline at end of file
216
+~~~