glob#
Build typed tools from annotations and docstrings. See the guide.
Find paths matching a relative or absolute glob pattern.
Parameters#
{
"additionalProperties": false,
"properties": {
"pattern": {
"minLength": 1,
"type": "string",
"description": "Glob pattern such as **/*.py, ../tests/*.py, or /work/src/**/*.py."
},
"max_results": {
"maximum": 5000,
"minimum": 1,
"type": "integer",
"default": 200,
"description": "Maximum number of sorted paths to return."
}
},
"required": [
"pattern"
],
"type": "object"
}
Model-facing snippet#
glob(pattern="src/**/*.py", max_results=200)
Guidelines#
Use glob to discover files before reading or searching them.
Narrow the pattern when the result is truncated.
- zett_agent.tools.files.glob#
A tool is a name, an input schema, and an async callable.
- 参数:
arguments (Mapping[str, Any])
- 返回类型:
Direct Python calls use await tool(arguments_mapping). The snippet
above describes model-facing invocation syntax, not the Python call signature.