Re-fetch tool definitions from all connected global MCP servers and update the internal cache. Call this when an MCP server has added or removed tools since the agent was created. The refreshed tools will be visible to all new** sessions created after this call; existing sessions are unaffected (their `ToolExecutor` snapshot is already built).
(&self)
| 366 | /// **new** sessions created after this call; existing sessions are |
| 367 | /// unaffected (their `ToolExecutor` snapshot is already built). |
| 368 | pub async fn refresh_mcp_tools(&self) -> Result<()> { |
| 369 | agent_sessions::refresh_mcp_tools(self).await |
| 370 | } |
| 371 | |
| 372 | /// Bind to a workspace directory, returning an [`AgentSession`]. |
| 373 | /// |
nothing calls this directly
no test coverage detected