Skip to content

Latest commit

 

History

History
52 lines (41 loc) · 1003 Bytes

File metadata and controls

52 lines (41 loc) · 1003 Bytes

Tool Discovery & Selection Engine

A Python tool to help agents discover and select the best tools for a given task.

Features

  • Search tools by description using keyword matching
  • Get details for specific tools by name
  • List all available tools
  • Simple JSON-based tool catalog

Installation

No installation required. Python 3.6+ is needed.

Usage

Search for Tools

python3 tool_discovery.py --query "search files" --top-n 2

Get Tool Details

python3 tool_discovery.py --tool Grep

List All Tools

python3 tool_discovery.py --list

Tool Catalog Format

The tool catalog is stored in tools.json with this format:

{
  "tools": [
    {
      "name": "Grep",
      "description": "Searches for patterns in files using regular expressions.",
      "tags": ["search", "pattern", "regex", "file"]
    }
  ]
}

Development

To add new tools:

  1. Add them to tools.json
  2. Run the script to test the changes

License

MIT License