Overview
Tools are external capabilities that AI agents can invoke during flow execution—web search, database queries, API calls, code execution, and more. AXON treats tools as first-class primitives with configurable parameters and safety constraints.Tool Definition
Syntax
Fields
provider (optional)
Type: Identifier
Specifies the tool provider or service.
brave— Brave Search APIgoogle— Google Searchbing— Bing Searchpostgres— PostgreSQL databasemysql— MySQL databaseredis— Redis cachehttp— Generic HTTP clientdocker— Docker container executionlambda— AWS Lambda functioncustom— Custom implementation
max_results (optional)
Type: Integer (must be positive)
Maximum number of results to return.
filter (optional)
Type: Expression
Filter expression to constrain results.
recent(days: N)— Results from last N daysverified— Verified/trusted sources onlydomain: "example.com"— Specific domainlanguage: "en"— Specific language- Custom expressions based on provider
timeout (optional)
Type: Duration
Maximum execution time before timeout.
ms— Milliseconds:500ms,100mss— Seconds:5s,30sm— Minutes:2m,5mh— Hours:1h,2hd— Days:1d,7d
runtime (optional)
Type: Identifier
Specifies the runtime environment for tool execution.
sandboxed— Isolated sandbox environmentnative— Native host environmentcontainer— Docker/container runtimeserverless— Serverless function (Lambda, etc.)vm— Virtual machine
sandbox (optional)
Type: Boolean (default: false)
Whether to execute the tool in a sandboxed environment.
- ✅ Code execution
- ✅ Untrusted inputs
- ✅ External code/scripts
- ✅ User-provided queries
- ❌ Internal trusted APIs
- ❌ Read-only operations
Complete Examples
Web Search Tool
Database Query Tool
Code Execution Tool
API Client Tool
Filtered Search Tool
Using Tools in Flows
Syntax
Within Steps
Direct Usage
Multiple Tools
With Variables
Tool Arguments
Tools accept string or identifier arguments:Best Practices
1. Set Appropriate Timeouts
2. Limit Result Sets
3. Sandbox Untrusted Code
4. Use Filters to Reduce Noise
5. Combine Tools with Validation
6. Handle Tool Failures
Common Patterns
Search and Analyze
Multi-Source Enrichment
Iterative Refinement
Safe Code Execution
Type Checking
The AXON type checker validates: ✅ Max results: Must be positive✅ Timeout: Must be valid duration
✅ Tool references: Referenced tools must exist
✅ Provider: Provider must be specified
