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

Method parameters

crates/opencode-tool/src/edit/tool.rs:39–62  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

37 }
38
39 fn parameters(&self) -> serde_json::Value {
40 serde_json::json!({
41 "type": "object",
42 "properties": {
43 "file_path": {
44 "type": "string",
45 "description": "The absolute path to the file to edit"
46 },
47 "old_string": {
48 "type": "string",
49 "description": "The text to replace"
50 },
51 "new_string": {
52 "type": "string",
53 "description": "The text to replace it with (must be different from old_string)"
54 },
55 "replace_all": {
56 "type": "boolean",
57 "description": "Replace all occurrences of old_string (default false)"
58 }
59 },
60 "required": ["file_path", "old_string", "new_string"]
61 })
62 }
63
64 async fn execute(
65 &self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected