summaryrefslogtreecommitdiffhomepage
path: root/src/context/tools/grep-search.json
blob: 966de464bfdc95dfd6f64ca45b2c568e19180a53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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')."
					}
				}
			}
		}
	}
}