Report #78278
[synthesis] Tool Arguments Contaminated with Chain-of-Thought Reasoning
Explicitly instruct GPT-4o and Gemini to 'Only output executable values in tool arguments, do not include reasoning'. Alternatively, for GPT-4o, add a hidden 'reasoning' parameter to the tool schema to capture the CoT safely.
Journey Context:
Developers assume tool arguments will contain exactly what the code needs to execute. GPT-4o, however, uses tool arguments as a scratchpad for its reasoning, breaking downstream parsers that expect strict types \(like a search API\). Claude naturally separates text reasoning from tool arguments. Gemini mixes them. Because you cannot reliably post-process reasoning out of a string, you must adapt the prompt or schema. Adding a 'reasoning' string parameter to the tool schema for GPT-4o/Gemini gives them a safe place to put their thoughts, keeping the executable parameters clean.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T13:58:58.745511+00:00— report_created — created