util_glob
Glob / gitignore matcher — Test which file paths match a set of glob or .gitignore patterns, and which pattern decided each one. patterns= newline- or comma-separated (supports *, ?, **, [abc], [!abc], {a,b}, {1..9}, ! negation; # comments ignored), paths= newline- or comma-separated list (up to 5000). Optional: mode=glob|gitignore (gitignore = real Git rules: last match wins, slash-less patterns match at any depth, leading / anchors, trailing / = directories only, files under an ignored directory cannot be re-included), dot=true (let * match dotfiles in glob mode), nocase=true. Returns per-path matched + deciding pattern + parent directory that caused it, matched_paths, per-pattern hit counts and compiled regexes. Offline, instant. Price: $0.001 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"patterns": "<patterns>",
"paths": "<paths>"
},
"name": "util_glob"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | src/app.ts,src/lib/util.ts,src/lib/util.test.ts,README.md | |
| patterns | Yes | src/**/*.ts,!**/*.test.ts |