Agent Tools
Using web search as an AI agent tool with auto-registration and multi-tool workflows
Auto-Registered Tool
// Add the built-in web search tool by key
agent = aiAgent(
name: "ResearchAgent",
instructions: "Use web search when you need current information.",
tools: [ "webSearch@bxai" ]
)Basic Agent Search
response = agent.run(
"Find the latest BoxLang AI release details and summarize key updates."
)Combine with Other Built-in Tools
agent = aiAgent(
name: "MultimodalResearcher",
instructions: "Research, summarize, and if needed produce audio and image assets.",
tools: [
"webSearch@bxai",
"speak@bxai",
"transcribe@bxai",
"translate@bxai",
"generateImage@bxai"
]
)Research + Memory Pattern
Explicit Provider Hints in Prompts
Safety Practices
Inspecting Tool Availability
Related
Last updated