MCPcopy Create free account
hub / github.com/InfinitiBit/graphbit / list_tools

Method list_tools

python/src/tools/registry.rs:189–197  ·  view source on GitHub ↗

Get list of registered tool names

(&self)

Source from the content-addressed store, hash-verified

187
188 /// Get list of registered tool names
189 pub fn list_tools(&self) -> PyResult<Vec<String>> {
190 let tools = self.tools.read().map_err(|e| {
191 PyErr::new::<pyo3::exceptions::PyRuntimeError, _>(format!(
192 "Failed to acquire tools lock: {}",
193 e
194 ))
195 })?;
196 Ok(tools.keys().cloned().collect())
197 }
198
199 /// Get tool metadata
200 pub fn get_tool_metadata(&self, name: &str) -> PyResult<Option<String>> {

Calls

no outgoing calls