Delphidelphi

Glob / Grep

Find files by pattern and search content.

Glob

Finds files matching a glob pattern, sorted by modification time.

NameTypeRequiredDescription
patternstringGlob pattern (e.g. **/*.py, src/**/*.ts)
pathstringDirectory to search in (default: current working directory)
{ "pattern": "**/*.mdx", "path": "/home/user/site/content" }

Grep

Searches file contents using ripgrep regex.

NameTypeRequiredDescription
patternstringRegex pattern to search for
pathstringFile or directory to search
globstringGlob filter (e.g. *.py)
typestringFile type (e.g. py, ts, go)
output_modestringfiles_with_matches (default), content, or count
contextnumberLines of context around each match
{
  "pattern": "scheduler_add",
  "path": "/home/user/delphi/agents",
  "type": "py",
  "output_mode": "content",
  "context": 3
}