SkillsHooksPromptsAgentsPersonasModelsPoliciesToolsTemplatesBundlesCategoriesStart here
← Tools
To toolcommandcodingfs-readstable

grep

Pattern search across files. Returns matching lines with file:line locations.

id tool/grepv1.0.0function grep

Signature

ParameterTypeRequiredDescription
patternstringyesRegex to match
pathstringyesRoot path or file
case_insensitivebooleannoIgnore case
max_matchesnumbernoCap on returned matches
returnsarrayMatch 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

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.