MCPcopy Index your code
hub / github.com/AI45Lab/Code / bash

Method bash

core/src/agent_api/direct_tools.rs:82–89  ·  view source on GitHub ↗
(&self, command: &str)

Source from the content-addressed store, hash-verified

80 }
81
82 pub(super) async fn bash(&self, command: &str) -> Result<String> {
83 let args = serde_json::json!({ "command": command });
84 let result = self
85 .tool_executor
86 .execute_with_context("bash", &args, &self.tool_context)
87 .await?;
88 Ok(result.output)
89 }
90
91 pub(super) async fn glob(&self, pattern: &str) -> Result<Vec<String>> {
92 let args = serde_json::json!({ "pattern": pattern });

Calls 1

execute_with_contextMethod · 0.45