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

Method ls

core/src/agent_api/direct_tools.rs:53–59  ·  view source on GitHub ↗
(&self, path: Option<&str>)

Source from the content-addressed store, hash-verified

51 }
52
53 pub(super) async fn ls(&self, path: Option<&str>) -> Result<ToolCallResult> {
54 let args = match path {
55 Some(path) => serde_json::json!({ "path": path }),
56 None => serde_json::json!({}),
57 };
58 self.call("ls", args).await
59 }
60
61 pub(super) async fn edit_file(
62 &self,

Calls 1

callMethod · 0.80