Skip to main content

Built-in tools

A model on its own can only write text from what it already knows. Tools let it do things: search the web, open a page, or read a document. This is what turns a chatbot into an agent that can find out what it doesn't know.

How tool use works​

The model doesn't browse the web itself. It asks for a tool, and Custodian runs it:

1. User: "What changed in the latest OpenAI API release?"
2. Model: "I need current info → web_search('OpenAI API release notes')"
3. Custodian: runs the search and hands back the results
4. Model: "I should read the top result → scrape_url('https://...')"
5. Custodian: fetches the page and hands back its text
6. Model: writes the answer, citing the page

The model decides whether to use a tool and which one, based on the question and your system prompt. A question like "What's 2 + 2?" won't trigger a search.

Available tools​

ToolWhat it doesExample use
web_searchSearches the web and returns top results.News, prices, recent releases
scrape_urlOpens a specific web page and reads its text."Summarize this article: https://..."
parse_documentExtracts text from a document at a URL, such as a PDF or DOCX."What does this PDF say about pricing?"

When an agent uses the web, the reply lists the pages it used in research_sources.

Connected apps​

These tools work inside an app your team already uses. You connect your own account first.

ToolWhat it doesSet up
slackLists channels, reads messages and threads, posts and replies in Slack. Expands to slack_list_channels, slack_read, slack_send, slack_reply.Connect Slack

Turn tools on​

Custodian(
model="gpt-6-luna",
system_prompt="Search the web only when the answer depends on recent events. Cite sources.",
tools=["web_search", "scrape_url"],
)

In a squad, give tools only to the agents that need them. For example, a researcher gets web_search and a writer doesn't.

Tell the agent when to use them​

Each tool call is an extra step, so it adds time and usage. A good system prompt says when to reach for a tool:

  • "Search the web only when the answer depends on events from the last year."
  • "If the user gives you a link, read it with scrape_url before answering."
  • "Always cite the pages you used."

Tools or files?​

Use a tool whenUse a data source when
The information is public and changes oftenThe information is yours and fairly stable
You don't know the source in advanceYou have the files already

Coming soon​

More tools are on the way, so agents can work inside the apps your team already uses.

ToolWhat your agent will be able to do
GmailRead, send and reply to email.
OutlookRead, send and reply to Microsoft 365 email.
Google CalendarCheck availability and book or move meetings.
Google DriveSearch and read docs, sheets and PDFs.
NotionSearch and read pages and databases.
HubSpotLook up and update contacts, companies and deals.
SQL databasesAnswer questions by querying your data, read-only.

Want a tool that isn't listed? Tell us on Discord or at support@custodianlabs.io.

See it in code: Web research agent template.