# Tools Examples This directory contains examples demonstrating various tool integrations and usage patterns in Swarms. ## Agent as Tools - [agent_as_tools.py](agent_as_tools.py) - Using agents as tools in workflows ## Base Tool Examples - [base_tool_examples.py](base_tool_examples/base_tool_examples.py) - Core base tool functionality - [conver_funcs_to_schema.py](base_tool_examples/conver_funcs_to_schema.py) - Function to schema conversion - [convert_basemodels.py](base_tool_examples/convert_basemodels.py) - BaseModel conversion utilities - [exa_search_test.py](base_tool_examples/exa_search_test.py) - Exa search testing - [example_usage.py](base_tool_examples/example_usage.py) - Basic usage examples - [schema_validation_example.py](base_tool_examples/schema_validation_example.py) - Schema validation - [test_anthropic_specific.py](base_tool_examples/test_anthropic_specific.py) - Anthropic-specific testing - [test_base_tool_comprehensive_fixed.py](base_tool_examples/test_base_tool_comprehensive_fixed.py) - Comprehensive testing (fixed) - [test_base_tool_comprehensive.py](base_tool_examples/test_base_tool_comprehensive.py) - Comprehensive testing - [test_function_calls_anthropic.py](base_tool_examples/test_function_calls_anthropic.py) - Anthropic function calls - [test_function_calls.py](base_tool_examples/test_function_calls.py) - Function call testing ## Browser Integration - [browser_use_as_tool.py](browser_use_as_tool.py) - Browser automation as a tool - [browser_use_demo.py](browser_use_demo.py) - Browser automation demonstration ## Claude Integration - [claude_as_a_tool.py](claude_as_a_tool.py) - Using Claude as a tool ## Exa Search - [exa_search_agent.py](exa_search_agent.py) - Exa search agent implementation ## Firecrawl Integration - [firecrawl_agents_example.py](firecrawl_agents_example.py) - Firecrawl web scraping agents ## Multi-Tool Usage - [many_tool_use_demo.py](multii_tool_use/many_tool_use_demo.py) - Multiple tool usage demonstration - [multi_tool_anthropic.py](multii_tool_use/multi_tool_anthropic.py) - Multi-tool with Anthropic ## Stagehand Integration - [1_stagehand_wrapper_agent.py](stagehand/1_stagehand_wrapper_agent.py) - Stagehand wrapper agent - [2_stagehand_tools_agent.py](stagehand/2_stagehand_tools_agent.py) - Stagehand tools agent - [3_stagehand_mcp_agent.py](stagehand/3_stagehand_mcp_agent.py) - Stagehand MCP agent - [4_stagehand_multi_agent_workflow.py](stagehand/4_stagehand_multi_agent_workflow.py) - Multi-agent workflow - [README.md](stagehand/README.md) - Stagehand documentation - [requirements.txt](stagehand/requirements.txt) - Stagehand dependencies - [tests/](stagehand/tests/) - Stagehand testing suite