AI agent tools: reading web pages and knowing today's date

All in One AI·· 55 views· 3 min read

Without tools, the agent only knows what is in its instructions, its knowledge and the model itself. Tools let it fetch information while it prepares the answer. There are two, and each one is turned on in the Agents tab of All in One AI.

Tool In All in One AI What it does
web_fetch Read web pages Reads a public page over http or https and returns the text without HTML, up to 20,000 characters. It waits at most 10 seconds, reads up to 1 MB and refuses private and internal addresses.
current_datetime Date and time Gives the current date and time, so the agent knows, for example, what day it is today.

Who decides when to use them

The agent decides on its own. If someone asks whether the bakery opens tomorrow, it can check the date before answering. If the chosen model does not support tools, the agent answers without them. On each request it makes at most 5 tool rounds.

Every round costs

Each use of a tool is one more call to the model, which spends credits like a chat request. An answer that uses two tools makes three calls to the model, and each call also carries the text of the ones before. So it costs more than an answer without tools. Turn on only the tools the agent really needs. The numbers are in what an AI agent costs.

With streaming

With stream: true, only the final answer arrives in parts. The tool rounds are not shown, so the first part may take longer to arrive.

A web page is text written by a stranger. If it hides instructions, it may try to steer the agent. Say in the instructions that page text is information, not orders, and check the answers before you act on them. See how outside text can steer your AI.
Web page or knowledge? If the text rarely changes, put it in the knowledge: the answer does not wait for a page to load. If it changes every day, like a product list published on your website, the tool reads today's version.

Want an agent that fetches the right information? Visit the AI agents page.

See AI agents

SEE ALSO

Creating an AI agent in All in One AI, step by step

Your AI agent's knowledge: what to add and how to keep each answer cheap

What an AI agent costs, and how to test it without spending

Prompt injection: how text from a stranger can steer your AI

AI agents in All in One AI

RECOMMENDED PRODUCT

Web hosting with cPanel

Domain and SSL included, daily backups and the panel you already know. from $6.60/mo (3-year plan, with coupon)

See plans
Was this answer helpful? Your answer helps us improve this article.