search_node_packs
Locate node classes, imports, or error strings in custom node pack source files using regular expression search.
Instructions
Regex-search custom-node source under custom_nodes/ (read-only). Uses ripgrep when it's on PATH, otherwise a bounded built-in scanner (skips dot-dirs, pycache/node_modules, binary and >1 MiB files). Returns file/line/text matches with per-line and result caps. Use this to find where a node class, import, or error string lives before reading or patching. LOCAL-ONLY (requires COMFYUI_PATH); the search path is jailed to custom_nodes/.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | No | Optional glob to restrict which files are searched (e.g. '**/*.py'). | |
| path | No | Pack-relative directory to search, or '.' for all packs (default '.'). | |
| query | Yes | Regular expression to search for. | |
| max_results | No | Maximum matches to return (default 50, max 100). | |
| case_sensitive | No | Match case-sensitively (default false). |