Describe the bug
When calling a tool, that replies with a JSON response, existing code only allows the first part of the response to be used within the agent.
For example: when calling the RepoMix MCP for repository analysis only the first part of the reply is returned to the agent.
Please review the metrics below and consider adjusting compress/includePatterns/ignorePatterns if the token count is too high and you need to reduce it before reading the file content.
Describe the bug
When calling a tool, that replies with a JSON response, existing code only allows the first part of the response to be used within the agent.
For example: when calling the RepoMix MCP for repository analysis only the first part of the reply is returned to the agent.
Please review the metrics below and consider adjusting compress/includePatterns/ignorePatterns if the token count is too high and you need to reduce it before reading the file content.