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,
"title": "Pattern",
"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"
],
"title": "ToolInput",
"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.
The result lists one path per line and is empty when nothing matches.
- zett_agent.tools.coding.glob#
A tool is a name, an input schema, and an async callable.
- Parameters:
arguments (Mapping[str, Any])
- Return type:
Direct Python calls use await tool(arguments_mapping). The snippet
above describes model-facing invocation syntax, not the Python call signature.