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>)
| 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> { |
no outgoing calls
no test coverage detected