GLOB_ALLOWED

Constant GLOB_ALLOWED 

Source
pub const GLOB_ALLOWED: &str = "Fast file pattern matching tool that works with any codebase size.\n\n- Searches within configured allowed directories only\n- Paths can be relative to allowed directories; paths outside will be rejected\n- Supports glob patterns like \"**/*.js\" or \"src/**/*.ts\"\n- Returns matching file paths sorted by modification time (newest first)\n- Respects .gitignore rules\n- Use this tool when you need to find files by name patterns\n- When you are doing an open-ended search that may require multiple rounds of globbing and grepping, use the Task tool instead\n\n### Parameters\n\n- `pattern`: Glob pattern to match files against (required)\n  - `*` matches any characters except path separators\n  - `**` matches any characters including path separators (recursive)\n  - `?` matches a single character\n  - `[abc]` matches any character in the brackets\n  - `{a,b}` matches either pattern\n- `path`: Directory path to search in - can be relative or absolute within allowed directories (required)\n\n### When to Use This Tool\n\n- Finding files by extension: `**/*.rs`, `**/*.tsx`\n- Finding files by name pattern: `**/test_*.py`, `**/*_spec.js`\n- Locating configuration files: `**/Cargo.toml`, `**/package.json`\n- Finding files in specific directories: `src/**/*.rs`\n\n### When NOT to Use This Tool\n\n- Searching for content inside files - use Grep instead\n- Reading file contents - use Read instead\n- Complex multi-step searches - use Task tool instead\n\n### Examples\n\nFind all Rust files:\n```\npattern: \"**/*.rs\"\npath: \".\"\n```\n\nFind all test files:\n```\npattern: \"**/test_*.py\"\npath: \".\"\n```\n\nFind TypeScript and TSX files:\n```\npattern: \"**/*.{ts,tsx}\"\npath: \"src\"\n```\n\nFind Cargo.toml files anywhere:\n```\npattern: \"**/Cargo.toml\"\npath: \".\"\n```\n\n### Best Practices\n\n1. You can call multiple tools in a single response. It is always better to speculatively perform multiple searches as a batch that are potentially useful.\n2. Start with broader patterns and narrow down if needed\n3. Use `**` for recursive searches across all subdirectories\n4. Combine with Read tool to examine found files\n5. Results are sorted by modification time - most recently changed files appear first\n6. Paths outside allowed directories will be rejected\n";
Expand description

Glob tool context for allowed/sandboxed path mode.