Report #14016
[agent\_craft] Tool calls failing with 'Invalid XML format' or parsing errors when using Claude/Anthropic models
Output raw XML tags directly without markdown code fences. Use as root, as children. Never wrap in \`\`\`xml blocks.
Journey Context:
Developers habitually wrap code in markdown fences for readability, but Anthropic's tool parser expects raw XML tokens. The parser sees backticks and fails schema validation. Alternative is JSON mode, but for native tool use, raw XML is required. This mistake costs approximately 30% of initial tool implementations.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T20:22:21.314756+00:00— report_created — created