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

Method parameters

crates/opencode-tool/src/multiedit.rs:38–82  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

36 }
37
38 fn parameters(&self) -> serde_json::Value {
39 serde_json::json!({
40 "type": "object",
41 "properties": {
42 "edits": {
43 "type": "array",
44 "items": {
45 "type": "object",
46 "properties": {
47 "file_path": {
48 "type": "string",
49 "description": "The path to the file to edit"
50 },
51 "edits": {
52 "type": "array",
53 "items": {
54 "type": "object",
55 "properties": {
56 "old_string": {
57 "type": "string",
58 "description": "The text to search for"
59 },
60 "new_string": {
61 "type": "string",
62 "description": "The text to replace it with"
63 },
64 "replace_all": {
65 "type": "boolean",
66 "default": false,
67 "description": "Replace all occurrences"
68 }
69 },
70 "required": ["old_string", "new_string"]
71 },
72 "description": "List of edits to apply to this file"
73 }
74 },
75 "required": ["file_path", "edits"]
76 },
77 "description": "List of files with their edits"
78 }
79 },
80 "required": ["edits"]
81 })
82 }
83
84 async fn execute(
85 &self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected