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

Method write_file

core/src/agent_api/direct_tools.rs:48–51  ·  view source on GitHub ↗
(&self, path: &str, content: &str)

Source from the content-addressed store, hash-verified

46 }
47
48 pub(super) async fn write_file(&self, path: &str, content: &str) -> Result<ToolCallResult> {
49 let args = serde_json::json!({ "file_path": path, "content": content });
50 self.call("write", args).await
51 }
52
53 pub(super) async fn ls(&self, path: Option<&str>) -> Result<ToolCallResult> {
54 let args = match path {

Calls 1

callMethod · 0.80