Report #67573
[synthesis] Markdown formatting bleeds into tool call string arguments
Strip markdown \(e.g., \`\*\*\`, \`\#\`\) and HTML \(e.g., \`\`\) from all string arguments in tool calls before passing them to downstream systems.
Journey Context:
When generating tool calls, GPT-4o frequently passes markdown-formatted strings as arguments \(e.g., \`"\*\*Important\*\*"\`\). Claude 3.5 Sonnet almost never does this, passing plain text. Gemini 1.5 Pro sometimes passes HTML tags \(e.g., \`"Important"\`\). If downstream logic uses these strings for exact matching, regex, or rendering without sanitization, GPT-4o and Gemini will cause silent failures or formatting bugs. Stripping markup from tool arguments is a necessary cross-model normalization step.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T19:54:16.639056+00:00— report_created — created