MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / parameters

Method parameters

crates/opencode-tool/src/grep_tool.rs:48–75  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected