Tool Selector
Determines which tools, APIs, MCP actions, or system capabilities are required for a given task
- License 许可
- MIT
- 最近更新
- 2026-06-22
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- Tool Selector
- tags
- [ "tools", "selection", "routing" ]
- author
- ForgeWeave Core
- version
- 1.0.0
- skill_id
- tool-selector
- description
- Determines which tools, APIs, MCP actions, or system capabilities are required for a given task
- tui_compatibility
- [ "opencode", "claude", "gemini", "qwen" ]
02 资源文件 2
- 参考文档references/available-tools.md2.4 KB
- 脚本scripts/select_tools.py981 B
03 SKILL.md 正文
Tool Selector
Purpose
Analyze a task and determine the optimal set of tools, MCP actions, APIs, and system capabilities needed to complete it. Prevents using the wrong tool for the job and ensures all required capabilities are available before execution starts.
When to Use
- Starting a complex task that may need multiple tools
- The user asks "what tool should I use for X?"
- A skill or agent needs to determine its tooling requirements
- Before invoking the workflow-orchestrator to plan execution
When Not to Use
- The tool is obvious from the task description
- Only one tool type is relevant (e.g., always "read" for documentation)
- The task is already executing and tools are already selected
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
task_description |
string | Yes | What needs to be done |
available_tools |
array | Yes | Tools, MCP actions, and capabilities available |
constraints |
string | No | Any restrictions on tool usage |
Expected Outputs
| Output | Description |
|---|---|
| Required tools | Ordered list of tools needed |
| Tool configuration | Parameters, permissions, or setup needed per tool |
| Missing tools | Any required capabilities not available |
Exact Workflow Steps
- Analyze the task to determine what operations are needed (read, write, search, execute, etc.)
- Map each operation to the appropriate available tool
- Verify each selected tool has the required permissions
- Identify any gaps where no available tool covers a needed operation
- Return the tool list with ordering suggestions
Required Checks
- [ ] Every required operation has a corresponding tool
- [ ] Selected tools have necessary permissions
- [ ] No tool is selected for operations it cannot perform
Failure Modes
| Failure Condition | Response |
|---|---|
| No tool available for a needed operation | Report gap and suggest creating a new tool |
| Tool permissions insufficient | Report what permissions need to be added |
| Task is too vague to analyze | Ask clarifying questions |
References
| Reference | Path |
|---|---|
| Available Tools (full registry) | ./skills/tool-selector/references/available-tools.md |
| Workflow Orchestrator skill | ../workflow-orchestrator/SKILL.md |
04 同仓库更多 Skills
Workflow Orchestrator
Coordinates multi-skill execution pipelines (e.g., research → plan → build → test)
Web Research
Browser-driven or scraping-based skill for real-time internet extraction using Playwright and HTTP-based fetching
Validation Engine
Checks outputs from other skills for consistency, correctness, and adherence to AGENTS.md rules
Tool Selector
Determines which tools, APIs, MCP actions, or system capabilities are required for a given task
Test Generator
Creates test plans and test cases (unit, integration, edge cases) based on existing or planned code
Skill Generator
Meta-skill that creates new SKILL.md files from research outputs and patterns discovered in execution