(&self)
| 46 | } |
| 47 | |
| 48 | fn parameters(&self) -> serde_json::Value { |
| 49 | serde_json::json!({ |
| 50 | "type": "object", |
| 51 | "properties": { |
| 52 | "pattern": { |
| 53 | "type": "string", |
| 54 | "description": "The regex pattern to search for" |
| 55 | }, |
| 56 | "path": { |
| 57 | "type": "string", |
| 58 | "description": "The directory to search in" |
| 59 | }, |
| 60 | "glob": { |
| 61 | "type": "string", |
| 62 | "description": "File pattern to include (e.g., '*.js')" |
| 63 | }, |
| 64 | "ignore_case": { |
| 65 | "type": "boolean", |
| 66 | "description": "Case insensitive search" |
| 67 | }, |
| 68 | "hidden": { |
| 69 | "type": "boolean", |
| 70 | "description": "Search hidden files and directories (default: false)" |
| 71 | } |
| 72 | }, |
| 73 | "required": ["pattern"] |
| 74 | }) |
| 75 | } |
| 76 | |
| 77 | async fn execute( |
| 78 | &self, |
nothing calls this directly
no outgoing calls
no test coverage detected