22 lines
850 B
Plaintext
22 lines
850 B
Plaintext
{
|
|
"description": "Find files by glob pattern, sorted by mtime (newest first).",
|
|
"prompt": "## file_glob\n\nFind files by glob pattern, sorted by mtime (newest first).\n\n**Args**: `[pattern]` or `[pattern, search_dir]`\n\n- First arg: glob pattern (e.g. `\"*.go\"`, `\"**/*.ts\"`).\n- Second arg (optional): absolute search directory. Defaults to cwd.\n\n```\nfile_glob(pattern=\"*.go\", search_dir=\"/abs/search/dir\")\nfile_glob(pattern=\"**/*.go\")\n```",
|
|
"args": {
|
|
"type": "object",
|
|
"required": [
|
|
"pattern"
|
|
],
|
|
"properties": {
|
|
"pattern": {
|
|
"type": "string",
|
|
"description": "Glob pattern (e.g. \"*.go\", \"**/*.ts\")"
|
|
},
|
|
"search_dir": {
|
|
"type": "string",
|
|
"description": "Absolute search directory path (optional, defaults to cwd)"
|
|
}
|
|
}
|
|
},
|
|
"scope": "read"
|
|
}
|