23 lines
657 B
JSON
23 lines
657 B
JSON
{
|
|
"name": "search_files",
|
|
"description": "Search for files matching a glob pattern within an allowed directory. Supports recursive patterns like '**/*.py'. Use this to find files by extension or name pattern.",
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {
|
|
"path": {
|
|
"type": "string",
|
|
"description": "Absolute path to the directory to search within."
|
|
},
|
|
"pattern": {
|
|
"type": "string",
|
|
"description": "Glob pattern, e.g. '*.py', '**/*.toml', 'src/**/*.rs'."
|
|
}
|
|
},
|
|
"required": [
|
|
"path",
|
|
"pattern"
|
|
]
|
|
},
|
|
"command": "python scripts/tool_call.py search_files"
|
|
}
|