grep
Pattern search across files. Returns matching lines with file:line locations.
id tool/grepv1.0.0function grep
Signature
| Parameter | Type | Required | Description |
|---|---|---|---|
pattern | string | yes | Regex to match |
path | string | yes | Root path or file |
case_insensitive | boolean | no | Ignore case |
max_matches | number | no | Cap on returned matches |
| returns | array | Match objects {file, line, text}. |
Tool definition for the model
{
"name": "grep",
"description": "Search for a regex pattern across files.",
"input_schema": {
"type": "object",
"properties": {
"pattern": {
"type": "string",
"description": "Regex to match"
},
"path": {
"type": "string",
"description": "Root path or file"
},
"case_insensitive": {
"type": "boolean",
"description": "Ignore case"
},
"max_matches": {
"type": "number",
"description": "Cap on returned matches"
}
},
"required": [
"pattern",
"path"
]
}
}Used by
- agent/code-reviewer — Code Reviewer
Author convergent-systems-key. Source convergent-systems-co/agent-atoms (original ↗). License Apache-2.0. Re-typed from tool-definition by scripts/migrate-policy-tool.py.