Capabilities · Module 03 · Beginner

Tools, connectors, and the outside world

A prompt-only chat is like an intern locked in a room with no phone. Powerful, but blind. Tools are how you unlock the door.

What "tools" mean in AI

A tool is a function the model can decide to call. You describe the function in JSON — its name, what it does, and its parameters — and the model, mid-response, chooses to call it. The runtime executes the function, hands the result back, and the model continues.

Tool-calling loop User "What's the weather in Denver?" LLM Decides to call get_weather( "Denver, CO") Your code / connector Calls weather API Result 72°F, clear
The model doesn't call your API. It asks your runtime to. You always stay in control.

Defining a tool

JavaScriptconst tools = [
  {
    type: "function",
    function: {
      name: "get_weather",
      description: "Get the current weather for a US city.",
      parameters: {
        type: "object",
        properties: {
          city: { type: "string", description: "City and state, e.g. 'Denver, CO'" }
        },
        required: ["city"]
      }
    }
  }
];

Two rules matter more than anything else:

  1. Descriptions are prompts too. The model reads your tool descriptions when deciding when to call. Write them like documentation for a smart intern.
  2. Fewer tools per turn. Give the model 5 great tools, not 50 mediocre ones. Group functionality: search_files beats search_gdrive + search_dropbox + search_notion.

Connectors: pre-built tools for popular apps

You could build a Gmail tool from scratch. Or you could use a "connector" — a pre-built package of tools that already handles auth, pagination, and rate limits.

PlatformWhat it gives you
Perplexity ComputerPre-connected: Gmail, Drive, Slack, GitHub, Figma, Cloudflare, GCal, Sheets, and hundreds more via one API.
Zapier / Make / n8n5000+ pre-built app integrations; you wire them into a flow.
MCP servers (Module 7)Open-standard connectors that plug into any AI app.
Custom (yours)Any API you can call from code. Best for internal systems.
Your existing stack

You already have Google Drive, Gmail, Cloudflare, GitHub, Figma, and Google Sheets connected in this session. That means any agent we build here can read your Drive, send email, deploy to Cloudflare, and open GitHub PRs — with zero new integration work.

Browsing the web (autonomously)

The other superpower is browser use. Some tools give the model a real Chromium browser. It can click, type, scroll, screenshot, and log in. This is what Perplexity Computer, Claude Computer Use, and OpenAI's browser tool do.

Rule: use browsers only when APIs don't exist. APIs are 100× cheaper and 100× more reliable. Reach for browser use only for sites without APIs (many state RFP portals, some analytics tools).

Exercise · 5 min

Prompt me to use tools

Right here in this Computer session, ask me:

  • "Read the last three proposal documents in my Drive and list common evaluation criteria."
  • "Check my main GitHub repo and summarize open issues from the last two weeks."
  • "What's on my calendar Monday? Draft a prep note for each meeting."

Each of those uses at least one tool. Watch the activity timeline to see which ones fire.

Or pass the quiz above.