(&self, path: &str, content: &str)
| 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 { |