In my current project, I've connected to an MCP server and am using useCopilotAction() to handle tool calls in CopilotKit in the frontend. However, Iāve run into a limitationāwhile useCopilotAction() works great for rendering individual tool calls, it doesn't provide a way to group multiple tool calls that belong to the same user request.
For instance, if a single user request triggers several tool calls sequentially, there's no built-in mechanism to identify or wrap them as a single unit or container in the response. I'm looking for a way to group these tool callsāperhaps in an accordion or a containerāto better reflect that they were triggered by one logical user action.
Has anyone tackled a similar challenge or found a way to manage the queue or context of grouped tool calls?