MCPcopy Create free account
hub / github.com/AI45Lab/Code / patch_file

Method patch_file

core/src/agent_api/direct_tools.rs:77–80  ·  view source on GitHub ↗
(&self, path: &str, diff: &str)

Source from the content-addressed store, hash-verified

75 }
76
77 pub(super) async fn patch_file(&self, path: &str, diff: &str) -> Result<ToolCallResult> {
78 let args = serde_json::json!({ "file_path": path, "diff": diff });
79 self.call("patch", args).await
80 }
81
82 pub(super) async fn bash(&self, command: &str) -> Result<String> {
83 let args = serde_json::json!({ "command": command });

Calls 1

callMethod · 0.80