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

Method tool_names

sdk/python/src/lib.rs:2728–2732  ·  view source on GitHub ↗

Return the names of all tools currently available in this session. Reflects the live state — MCP tools appear after ``add_mcp_server()`` or ``add_mcp_server_config()`` and disappear after ``remove_mcp_server()``. Returns: List of tool name strings

(&self, py: Python<'py>)

Source from the content-addressed store, hash-verified

2726 /// Returns:
2727 /// List of tool name strings
2728 fn tool_names<'py>(&self, py: Python<'py>) -> PyResult<Bound<'py, PyList>> {
2729 let names = self.inner.tool_names();
2730 let list = PyList::new(py, names)?;
2731 Ok(list)
2732 }
2733
2734 /// Return full model-visible tool definitions currently registered on this session.
2735 fn tool_definitions(&self, py: Python<'_>) -> PyResult<PyObject> {

Calls

no outgoing calls

Tested by

no test coverage detected