MCPcopy Create free account
hub / github.com/astercloud/aster / Grep

Function Grep

client-sdks/python-bridge/aster.py:263–278  ·  view source on GitHub ↗

文件内容搜索 Args: pattern: 搜索模式 (正则表达式) path: 搜索路径 glob: 文件过滤模式 Returns: 搜索结果

(pattern: str, path: str = ".", glob: Optional[str] = None)

Source from the content-addressed store, hash-verified

261
262
263async def Grep(pattern: str, path: str = ".", glob: Optional[str] = None) -> Any:
264 """
265 文件内容搜索
266
267 Args:
268 pattern: 搜索模式 (正则表达式)
269 path: 搜索路径
270 glob: 文件过滤模式
271
272 Returns:
273 搜索结果
274 """
275 params = {"pattern": pattern, "path": path}
276 if glob:
277 params["glob"] = glob
278 return await _bridge.call_tool("Grep", **params)
279
280
281async def Bash(command: str, timeout: Optional[int] = None) -> Dict[str, Any]:

Callers

nothing calls this directly

Calls 1

call_toolMethod · 0.80

Tested by

no test coverage detected