Understanding Tools in Slide
Tools in Slide follow the OpenAI function calling format. Each tool has:- A definition that describes what it does
- An implementation that executes the action
Using Lye’s built-in tools
The easiest way to add tools is using Lye’s pre-built tool groups:Tool Groups Explained
Web Tools
Perfect for research and information gathering:Image Tools
For visual analysis and OCR:File Tools
For reading and writing files:Audio Tools
For speech processing:Browser Tools
For web automation:Selective Tool Usage
Sometimes you only need specific tools:Creating custom tools
You can create your own tools by following the OpenAI function format:Advanced Custom Tools
Here’s a more complex example with async support and error handling:Tool Combinations for Common Tasks
Research assistant
Content Analyzer
Web Scraper
Best practices
1. Tool Selection
Only give your agent the tools it needs:2. Clear Tool Descriptions
When creating custom tools, write clear descriptions:3. Error Handling
Always handle errors in custom tools:4. Tool Composition
Combine tools for complex workflows:Troubleshooting
Can't process scanned PDFs
Can't process scanned PDFs
For OCR support with image-based PDFs, install poppler:
- macOS:
brew install poppler - Ubuntu:
sudo apt-get install poppler-utils