diff options
Diffstat (limited to 'src/context/tools/grep-search.json')
| -rw-r--r-- | src/context/tools/grep-search.json | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/context/tools/grep-search.json b/src/context/tools/grep-search.json new file mode 100644 index 0000000..966de46 --- /dev/null +++ b/src/context/tools/grep-search.json @@ -0,0 +1,28 @@ +{ + "id": "grep_search", + "label": "Search File Contents", + "description": "Search for text across all markdown files in the vault.", + "friendlyName": "Search Contents", + "requiresApproval": false, + "definition": { + "type": "function", + "function": { + "name": "grep_search", + "description": "Search for a text string across all markdown file contents in the vault. Returns matching lines with file paths and line numbers (e.g. 'folder/note.md:12: matching line'). Case-insensitive. Optionally filter by file path pattern.", + "parameters": { + "type": "object", + "required": ["query"], + "properties": { + "query": { + "type": "string", + "description": "The text to search for in file contents. Case-insensitive." + }, + "file_pattern": { + "type": "string", + "description": "Optional filter: only search files whose path contains this string (e.g. 'journal/' or 'project')." + } + } + } + } + } +} |
