MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / get

Method get

crates/opencode-tool/src/registry.rs:27–30  ·  view source on GitHub ↗
(&self, id: &str)

Source from the content-addressed store, hash-verified

25 }
26
27 pub async fn get(&self, id: &str) -> Option<Arc<dyn Tool>> {
28 let tools = self.tools.read().await;
29 tools.get(id).cloned()
30 }
31
32 pub async fn list(&self) -> Vec<Arc<dyn Tool>> {
33 let tools = self.tools.read().await;

Callers 12

render_dirMethod · 0.45
executeMethod · 0.45
fetch_with_retryMethod · 0.45
executeMethod · 0.45
parse_multi_file_patchFunction · 0.45
executeMethod · 0.45
executeMethod · 0.45
hook_payload_objectFunction · 0.45
apply_tool_after_payloadFunction · 0.45
executeMethod · 0.45

Calls 1

readMethod · 0.80

Tested by

no test coverage detected