Skip to content

Default Tools — Examples

The seven tools in default-tool-specs.json are the starter examples. They span the surfaces a beginner is likely to want first — fetch a web page, get the current time, build a calendar link, look up weather, search the web, call an LLM, send a Slack message — and double as ready-to-copy templates for the helper API you will use in your own tools.

Three of the seven need an API key or webhook URL to be useful (googlePseSearch, openaiResponseGenerator, sendSlackMessage). The rest work out of the box on a fresh install — getCurrentTime and evalExpression are members of every shipped preset because they have no dependency at all.

All 7 inherit Tool Studio's default sandbox: deny-first class allowlist, no filesystem, network in strict mode with the SSRF four-layer guard for the tools that fetch.

The 7 examples

extractPageContent 🆓

web · example L0

Fetches a web page and extracts its main readable content + outbound links. Uses the host-injected fetch (SSRF-defended in strict mode) and safety.parser.html for parsing.

Params   pageUrl

Env       —

Click for full reference · params · sandbox · JS source
getCurrentTime 🆓

datetime · example · util L0

Returns the current time in ISO 8601 format. If the user specifies a city, country, or location, the agent should first map it to an IANA time zone and supply it via the timeZone parameter. If no time zone is provided, UTC is used.

Params   timeZone

Env       —

Click for full reference · params · sandbox · JS source
getWeather 🆓

web · example · weather L0

Free public weather lookup via wttr.in (no API key). Returns a small JSON summary: { location, tempC, humidity, windSpeed, windDirection }.

Params   location

Env       —

Click for full reference · params · sandbox · JS source
googlePseSearch 🔑 × 2

web · example · search L0

Google Programmable Search Engine query (Custom Search API). Requires GOOGLE_API_KEY and GOOGLE_PSE_ID env vars.

Params   query · resultNum · startPage

Env       GOOGLE_API_KEY · GOOGLE_PSE_ID

Click for full reference · params · sandbox · JS source
openaiResponseGenerator 🔑 × 1

ai · example L0

Calls OpenAI's Responses API. Requires OPENAI_API_KEY env var.

Params   prompt · model

Env       OPENAI_API_KEY

Click for full reference · params · sandbox · JS source
sendSlackMessage 🔑 × 1

messaging · example L0

Posts a text message to a Slack channel via Incoming Webhook. Requires SLACK_WEBHOOK_URL env var (the full https://hooks.slack.com/services/... URL).

Params   text

Env       SLACK_WEBHOOK_URL

Click for full reference · params · sandbox · JS source

Composition patterns (starter chains)

These seven tools are picked so any pair plugs together — a perfect first agentic-workflow surface. Two patterns you can reproduce after Local Pass:

  • Search → summarisegooglePseSearch(query) returns ranked snippets; pass them as a prompt fragment into openaiResponseGenerator so the model cites recent sources rather than parametric memory.
  • Fetch → notifygetWeather(location) (or getOpenMeteoForecast from Global) → sendSlackMessage(text) to post a daily threshold alert to a channel.
  • Time + CalendargetCurrentTime(timeZone) produces an ISO timestamp the model can offset, then buildGoogleCalendarCreateLink(title, start, end, ...) returns a one-click "Add to Calendar" URL.

Deeper walk-throughs in Tutorial 8: Default Tool Recipes.

Keys & secrets

Three of the seven need a credential. The launcher's Environment Variables card is the recommended place to set them; the static-variable substring is masked from console.log and from the chat tool-call trace whenever it appears as a full string in the output.

Tool Env var Where to issue
openaiResponseGenerator OPENAI_API_KEY platform.openai.com/api-keys
googlePseSearch GOOGLE_API_KEY + GOOGLE_PSE_ID Google Cloud Console for the API key, Programmable Search Engine for the PSE ID
sendSlackMessage SLACK_WEBHOOK_URL api.slack.com/apps → Incoming Webhooks → Add to Workspace

Tool Studio: Static Variables — how ${ENV_VAR} placeholders resolve at runtime. → Index — overview of all 86 default tools and the five reference pages.