For the complete documentation index, see llms.txt. This page is also available as Markdown.

Tools & Skills

Let AI models call your code with tools, share tools through a registry, and inject reusable knowledge with skills.

🛠️ Tools

Tools are functions the model can call. This is how AI reaches real-time data, APIs, databases, and your business logic.

Define a tool with aiTool():

weatherTool = aiTool(
    "get_weather",
    "Get current weather for a location",
    location => getWeatherData( location )
).describeLocation( "City and country, e.g. Boston, MA" )

The model decides when to call it. You control what it can reach.

🗄️ Global Tool Registry

Register a tool once by name, then reference it by string everywhere:

This keeps tool definitions in one place and makes them easy to share across agents.

🎯 Skills

Skills are reusable blocks of knowledge, written as SKILL.md files, that are injected into an agent's system context at runtime.

  • Always-on skills are added to every request.

  • Lazy skills are loaded only when the model asks for them, which keeps context small.

These are skills for agents that run inside your application. Skills for the coding agent that writes your application are covered in Skills & Guidelines.

🔒 Keep Tools Safe

Tools act on real systems. Restrict and supervise them:

  • Block dangerous tools or argument patterns with guardrails

  • Require human approval for sensitive calls

  • Cap the number of tool calls per run

🔍 Go Deeper

Last updated

Was this helpful?