Skip to content

工具描述:Glob 文件模式匹配

Tool Description: Glob

v2.0.14

Tool description for file pattern matching and searching by name

  • 快速文件模式匹配工具,适用于任意规模的代码库
  • 支持 glob 模式,如 "/*.js" 或 "src//*.ts"
  • 返回按修改时间排序的匹配文件路径
  • 当您需要按名称模式查找文件时,请使用此工具
  • 当您进行可能需要多轮 glob 匹配和 grep 搜索的开放式搜索时,请改用 Agent 工具
  • 您可以在单个响应中调用多个工具。如果多个搜索可能有用,并行执行多个推测性搜索总是更好的选择。

英文原文 / English Original

  • Fast file pattern matching tool that works with any codebase size
  • Supports glob patterns like "/*.js" or "src//*.ts"
  • Returns matching file paths sorted by modification time
  • Use this tool when you need to find files by name patterns
  • When you are doing an open ended search that may require multiple rounds of globbing and grepping, use the Agent tool instead
  • You can call multiple tools in a single response. It is always better to speculatively perform multiple searches in parallel if they are potentially useful.