Get Started
Local Tools Guide
Integrating local tools in xpander for secure file operations
Integrating local tools in xpander allows you to perform file operations (read/write) in a secure and controlled environment, ensuring no unauthorized access outside the current working directory.
Local Tools
1
Define Local Functions
Define helper functions to handle file operations such as writing files.
2
Add Tools to Your AI Agent
Use xpander to define and add these tools to your AI agent.
3
Add the Local Tools to your xpander AI agent
4
Run the Agent with the Local Tools
Example Usage
Request the AI agent to create or read files. For example:
- Create a CSV file:
- File Name: data.csv
- Content: “Name,Age\nAlice,25\nBob,30”
- File Type: “csv”
For further help, visit our documentation or join the xpander Discord community.