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

Method call

core/src/agent_api/direct_tools.rs:103–112  ·  view source on GitHub ↗
(&self, name: &str, args: serde_json::Value)

Source from the content-addressed store, hash-verified

101 }
102
103 pub(super) async fn call(&self, name: &str, args: serde_json::Value) -> Result<ToolCallResult> {
104 let result = self.tool_executor.execute(name, &args).await?;
105 Ok(ToolCallResult {
106 name: name.to_string(),
107 output: result.output,
108 exit_code: result.exit_code,
109 metadata: result.metadata,
110 error_kind: result.error_kind,
111 })
112 }
113}
114
115fn parse_glob_output(output: &str) -> Vec<String> {

Callers 6

toolMethod · 0.80
write_fileMethod · 0.80
lsMethod · 0.80
edit_fileMethod · 0.80
patch_fileMethod · 0.80
record_after_llmMethod · 0.80

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected