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

Method list_ids

crates/opencode-tool/src/registry.rs:38–41  ·  view source on GitHub ↗

Returns all registered tool IDs.

(&self)

Source from the content-addressed store, hash-verified

36
37 /// Returns all registered tool IDs.
38 pub async fn list_ids(&self) -> Vec<String> {
39 let tools = self.tools.read().await;
40 tools.keys().cloned().collect()
41 }
42
43 /// Given a tool name that was not found, returns a list of available tool names
44 /// filtered to exclude tools in `FILTERED_FROM_SUGGESTIONS`.

Callers

nothing calls this directly

Calls 1

readMethod · 0.80

Tested by

no test coverage detected