aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/mod.rs')
-rw-r--r--src/tools/mod.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tools/mod.rs b/src/tools/mod.rs
index 503de08..7a1a26d 100644
--- a/src/tools/mod.rs
+++ b/src/tools/mod.rs
@@ -117,13 +117,14 @@ pub fn schemas() -> Vec<Value> {
117 "type": "function", 117 "type": "function",
118 "function": { 118 "function": {
119 "name": "grep", 119 "name": "grep",
120 "description": "Search file contents for a literal string, recursively. Skips .git, target, node_modules and similar.", 120 "description": "Search file contents recursively with a regular expression. Skips .git, target, node_modules and similar. Set fixed=true to match literal text instead.",
121 "parameters": { 121 "parameters": {
122 "type": "object", 122 "type": "object",
123 "properties": { 123 "properties": {
124 "pattern": { "type": "string" }, 124 "pattern": { "type": "string", "description": "regular expression, or literal text when fixed=true" },
125 "path": { "type": "string", "description": "file or directory (default .)" }, 125 "path": { "type": "string", "description": "file or directory (default .)" },
126 "ignore_case": { "type": "boolean" } 126 "ignore_case": { "type": "boolean" },
127 "fixed": { "type": "boolean", "description": "treat pattern as literal text" }
127 }, 128 },
128 "required": ["pattern"] 129 "required": ["pattern"]
129 } 130 }