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
| Tool | What it does | Example use |
|---|---|---|
web_search | Searches the web and returns top results. | News, prices, recent releases |
scrape_url | Opens a specific web page and reads its text. | "Summarize this article: https://..." |
parse_document | Extracts 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.
| Tool | What it does | Set up |
|---|---|---|
slack | Lists 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
- Python
- TypeScript
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"],
)
new Custodian({
model: "gpt-6-luna",
systemPrompt: "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_urlbefore answering." - "Always cite the pages you used."
Tools or files?
| Use a tool when | Use a data source when |
|---|---|
| The information is public and changes often | The information is yours and fairly stable |
| You don't know the source in advance | You have the files already |
Coming soon
More tools are on the way, so agents can work inside the apps your team already uses.
| Tool | What your agent will be able to do |
|---|---|
| Gmail | Read, send and reply to email. |
| Outlook | Read, send and reply to Microsoft 365 email. |
| Google Calendar | Check availability and book or move meetings. |
| Google Drive | Search and read docs, sheets and PDFs. |
| Notion | Search and read pages and databases. |
| HubSpot | Look up and update contacts, companies and deals. |
| SQL databases | Answer 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.