Skip to content

Agent Zero AI framework

add tool webpage content tool description

John Bollenbacher1518fd5d7202
diff --git a/prompts/agent.tools.md b/prompts/agent.tools.md
index c5387e93a..fa9bd8265 100644
--- a/prompts/agent.tools.md
+++ b/prompts/agent.tools.md
@@ -62,6 +62,26 @@ Always verify memory by online.
}
~~~
+### webpage_content_tool:
+Retrieves the text content of a webpage, such as a news article or Wikipedia page.
+Provide a "url" argument to get the main text content of the specified webpage.
+This tool is useful for gathering information from online sources.
+Always provide a full, valid URL including the protocol (http:// or https://).
+
+**Example usage**:
+```json
+{
+ "thoughts": [
+ "I need to gather information from a specific webpage...",
+ "I will use the webpage_content_tool to fetch the content...",
+ ],
+ "tool_name": "webpage_content_tool",
+ "tool_args": {
+ "url": "https://en.wikipedia.org/wiki/Artificial_intelligence",
+ }
+}
+```
+
### memory_tool:
Manage long term memories. Allowed arguments are "query", "memorize", "forget" and "delete".
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
"code": "Y",
}
}
-~~~
\ No newline at end of file
+~~~