Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计通过

tool-search工具搜索

Agent Skill

tool-search 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,257

周安装

54

GitHub Stars

25

下载量

441
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tool-search(工具搜索)
来源仓库:https://github.com/oimiragieo/agent-studio
仓库路径:skills/tool-search
安装命令:
npx skills add https://github.com/oimiragieo/agent-studio --skill tool-search
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/oimiragieo/agent-studio --skill tool-search

简介

tool-search 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据来源线索快速定位候选结果。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装使用。
  • 安装前需确认权限范围、维护状态,以及是否触发联网或命令执行。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

References (archive): SCAFFOLD_SKILLS_ARCHIVE_MAP.md — embedding/semantic tool discovery from everything-claude-code backend-patterns, tdd-workflow.

Tool Search Skill

Identity

Tool Search - Provides semantic tool discovery using embeddings to scale from dozens to thousands of tools with 90%+ context reduction.

Capabilities

  • Semantic Tool Search: Find relevant tools based on task context
  • Embedding-Based Matching: Use embeddings for accurate tool discovery
  • On-Demand Loading: Load tools only when needed
  • Context Efficiency: 90%+ reduction in tool definition tokens

The Problem

Traditional tool loading:

  • All tools loaded upfront
  • 58 tools = ~55K tokens
  • Context fills quickly
  • Hard to scale beyond ~100 tools

The Solution

Tool Search with Embeddings:

  • Only Tool Search Tool loaded initially (~500 tokens)
  • Tools discovered on-demand via semantic search
  • 3-5 relevant tools loaded per search (~3K tokens)
  • Total: ~8.7K tokens vs. ~77K traditional (85% reduction)

How It Works

  1. Initial State: Only Tool Search Tool + critical tools loaded
  2. Tool Discovery: Agent searches for tools based on task
  3. Semantic Matching: Embeddings match tools to task context
  4. Tool Expansion: Matching tools expanded into full definitions
  5. Tool Use: Agent uses discovered tools

Configuration

MCP Configuration (.claude/.mcp.json)

{
  "betaFeatures": ["advanced-tool-use-2025-11-20"],
  "toolSearch": {
    "enabled": true,
    "autoEnableThreshold": 20,
    "defaultDeferLoading": true
  },
  "mcpServers": {
    "repo": {
      "deferLoading": true,
      "alwaysLoadTools": ["search_code", "read_file"]
    },
    "github": {
      "deferLoading": true,
      "alwaysLoadTools": ["create_pull_request", "get_issue"]
    }
  }
}

Always Load Critical Tools

Keep 3-5 most-used tools always loaded:

  • Core file operations: read_file, write_file, search_code
  • Essential integrations: create_pull_request, get_issue
  • Frequently used: take_screenshot, navigate_page

Usage Patterns

When to Use Tool Search

Most Beneficial When:

  • Tool definitions consuming >10K tokens
  • Tool library has 10+ tools
  • Experiencing tool selection accuracy issues
  • Building MCP-powered systems with multiple servers

Less Beneficial When:

  • Small tool library (<10 tools)
  • All tools used frequently in every session
  • Tool definitions are compact

Tool Discovery

Agent Workflow:

  1. Agent needs capability (e.g., "create a pull request")
  2. Agent searches: "github pull request creation"
  3. Tool Search returns: create_pull_request tool
  4. Tool expanded into full definition
  5. Agent uses tool

Example:

User: "Create a pull request for my changes"

Agent searches: "github pull request creation"
Tool Search finds: create_pull_request tool
Tool loaded and used

Best Practices

1. Clear Tool Names and Descriptions

Good:

{
  "name": "search_customer_orders",
  "description": "Search for customer orders by date range, status, or total amount. Returns order details including items, shipping, and payment info."
}

Bad:

{
  "name": "query_db_orders",
  "description": "Execute order query"
}

2. System Prompt Guidance

Add guidance in agent prompts:

You have access to tools for Slack messaging, Google Drive file management,
Jira ticket tracking, and GitHub repository operations. Use the tool search
to find specific capabilities when needed.

3. Keep Critical Tools Always Loaded

Don't defer loading for:

  • Core file operations
  • Essential integrations
  • Frequently used tools

4. Monitor Tool Usage

Track which tools are discovered:

  • Most searched tools
  • Tool discovery patterns
  • Context savings achieved

Implementation

Embedding-Based Tool Search

The tool search uses embeddings to match tools to queries:

  1. Tool Indexing: Create embeddings for all tool definitions
  2. Query Embedding: Create embedding for user query
  3. Similarity Search: Find tools with similar embeddings
  4. Tool Expansion: Load matching tools into context

Tool Search Tool

The Tool Search Tool itself:

  • Searches tool library semantically
  • Returns relevant tools based on query
  • Expands tools into full definitions
  • Maintains tool index

Benefits

Context Efficiency

  • 85% reduction in tool definition tokens
  • 52.5% total context (down from 87%)
  • Within optimal range (60-70% target)

Improved Accuracy

  • 11% improvement in tool selection accuracy
  • 79.5% → 88.1% (Opus 4.5)
  • Better tool matching for complex queries

Scalability

  • Scales to thousands of tools
  • No context limit concerns
  • Dynamic tool discovery

Examples

Example 1: GitHub Operations

User: "Create a pull request"

Agent workflow:
1. Searches: "github pull request creation"
2. Tool Search finds: create_pull_request tool
3. Tool loaded (3K tokens)
4. Agent uses tool
5. Total context: ~8.7K tokens (vs. 55K traditional)

Example 2: File Operations

User: "Search for authentication code"

Agent workflow:
1. Searches: "code search file operations"
2. Tool Search finds: search_code, read_file tools
3. Tools loaded (5K tokens)
4. Agent uses tools

Example 3: Multiple Integrations

User: "Check Slack messages and create Jira ticket"

Agent workflow:
1. Searches: "slack message reading"
2. Tool Search finds: read_slack_message tool
3. Searches: "jira ticket creation"
4. Tool Search finds: create_jira_ticket tool
5. Both tools loaded (6K tokens total)

Integration

With MCP Servers

Tool search works with MCP servers:

  • GitHub MCP: 35 tools → 3-5 loaded on-demand
  • Slack MCP: 11 tools → 2-3 loaded on-demand
  • Custom MCPs: Any number of tools → Loaded as needed

With Agent System

All agents benefit from tool search:

  • Reduced context usage
  • Better tool selection
  • Scalable tool libraries

Troubleshooting

Tools Not Found

  • Check tool names and descriptions are clear
  • Verify tool search is enabled
  • Review search queries
  • Check tool index is up to date

Context Still High

  • Verify deferLoading is enabled
  • Check alwaysLoadTools list (should be minimal)
  • Review tool definitions (may be too verbose)
  • Monitor actual tool usage

Tool Selection Issues

  • Improve tool descriptions
  • Add more context to search queries
  • Review tool naming conventions
  • Check embedding quality

Integration with Programmatic Tool Calling (PTC)

Tool Search works excellently with Programmatic Tool Calling:

  1. Tool Search finds relevant tools (on-demand loading)
  2. PTC orchestrates tools efficiently (reduced context)
  3. Result: Optimal tool usage with minimal token consumption

Example Workflow:

# Tool Search finds tools
tools = search_tools("github issue management")

# PTC orchestrates multiple tool calls
team = await get_team_members("engineering")
issues = await asyncio.gather(*[
    get_issue(member["github_username"]) for member in team
])
# Only final results in context, not all intermediate data

See PTC Patterns Guide for comprehensive PTC documentation.

Related Documentation

References

# Search for git-related tools
node .claude/tools/tool_search.mjs --query "git"

# Search for database tools
node .claude/tools/tool_search.mjs --query "database" --limit 3

# Search for testing tools
node .claude/tools/tool_search.mjs --query "testing"

</usage_example>

Memory Protocol (MANDATORY)

Before starting: Read .claude/context/memory/learnings.md

After completing:

  • New pattern -> .claude/context/memory/learnings.md
  • Issue found -> .claude/context/memory/issues.md
  • Decision made -> .claude/context/memory/decisions.md
ASSUME INTERRUPTION: If it's not in memory, it didn't happen.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.62%
按下载量换算144

Claude

29.52%
按下载量换算130

Cursor

20.05%
按下载量换算88

Gemini CLI

10.37%
按下载量换算46

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills