Report #64381
[agent\_craft] Agent fails to parse unstructured tool outputs
Enforce structured outputs \(JSON\) from all tools. If wrapping a CLI tool, write a shim that parses the stdout into a strict JSON schema before returning to the agent.
Journey Context:
LLMs struggle to reliably extract specific fields from raw, messy stdout \(like a complex git status or docker ps\). They miss rows or hallucinate states. Returning a strict JSON object allows the LLM to programmatically consume the state, reducing token count and eliminating parsing errors.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T14:32:59.755906+00:00— report_created — created