{
 "id": "rg-search",
 "kind": "tool",
 "name": "Search with ripgrep",
 "description": "Search the files of the workspace for a regular expression with ripgrep (rg), showing file, line and text; at most 40 matches per file.",
 "icon": "tabler:search",
 "category": "Code and data",
 "version": "1.0.0",
 "author": "Hexa Hub",
 "tool": {
  "command": [
   "rg",
   "--line-number",
   "--no-heading",
   "--color",
   "never",
   "--max-count",
   "40",
   "-e",
   "{{pattern}}",
   "?--",
   "?{{path}}"
  ],
  "risk": "inspect",
  "timeout": 60,
  "args": [
   {
    "name": "pattern",
    "required": true,
    "allowDash": true,
    "description": "Regular expression to find"
   },
   {
    "name": "path",
    "kind": "path",
    "required": false,
    "description": "File or folder to search (default: the whole folder)"
   },
   {
    "name": "dir",
    "kind": "path",
    "required": false,
    "description": "Folder to run in, relative to the workspace"
   }
  ]
 }
}
