I am looking for a way to pause an external MCP tool call for the Human to confirm in the MCP client UI. Post that MCP tool can go ahead. The tool is behind a MCP server which is an agent with multiple tools.
Hey @shubham, welcome to the Agno community! Thanks so much for reaching out and for your support - great to have you here!
Yes! You can use requires_confirmation_tools in your MCPTools to pause for human confirmation.
When the agent calls those tools, check run_response.is_paused and tools_requiring_confirmation, get user approval in your UI, set tool.confirmed = True/False, then call agent.continue_run().
@yuvi
Thanks Yuvi. Could you please also confirm if I have a team of agents, and one of those agents have few tools which requires confirmation, does the team will pause and wait?
When (member agent) pauses, does team.arun() return is_paused=True?
Is run_response.tools_requiring_confirmation populated at Team level?
Does team.continue_run() correctly resume the paused member agent?
Thanks @yuvi for the update. Please let me know when can this be released tentatively. We are building multi agent team and this is crucial feature for us to move ahead.