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

Method get

core/src/tools/registry.rs:107–110  ·  view source on GitHub ↗

Get a tool by name

(&self, name: &str)

Source from the content-addressed store, hash-verified

105
106 /// Get a tool by name
107 pub fn get(&self, name: &str) -> Option<Arc<dyn Tool>> {
108 let tools = self.tools.read().unwrap();
109 tools.get(name).cloned()
110 }
111
112 /// Check if a tool exists
113 pub fn contains(&self, name: &str) -> bool {

Callers 15

executeMethod · 0.45
executeMethod · 0.45
execute_script_programFunction · 0.45
load_script_sourceFunction · 0.45
script_allowed_toolsFunction · 0.45
script_limitsFunction · 0.45
render_script_outputFunction · 0.45
parse_from_valueMethod · 0.45
from_tool_argsMethod · 0.45
executeMethod · 0.45
get_artifactMethod · 0.45
execute_with_contextMethod · 0.45

Calls

no outgoing calls