When running e.g.
mcpc @apify tools-call search-actors keywords:="test"
We print only the text output, even though there is structured one too. We should at least hint about it's presence and how to get it, so the agent can decide for itself to fetch it.
Also, revise how we check and use this info from specs:
Structured content is returned as a JSON object in the structuredContent field of a result.
For backwards compatibility, a tool that returns structured content SHOULD also return the serialized JSON in a TextContent block.
Basically, we can ignore such text if it's just serialized structuredContent.
When running e.g.
We print only the text output, even though there is structured one too. We should at least hint about it's presence and how to get it, so the agent can decide for itself to fetch it.
Also, revise how we check and use this info from specs:
Basically, we can ignore such text if it's just serialized
structuredContent.