Edit tool: InputValidationError about required parameters missing, intermittent, retries succeed
Resolved 💬 5 comments Opened Apr 29, 2026 by IanVand Closed May 31, 2026
Problem
Edit tool calls intermittently fail with:
InputValidationError: Edit failed due to the following issues:
The required parameter `file_path` is missing
The required parameter `old_string` is missing
The required parameter `new_string` is missing
The parameters ARE being provided (I can see them in the JSONL session log). Retrying the same call with identical parameters succeeds.
Background
This is closely related to the Write variant in #895 (still open) and #36518 (closed as duplicate of #30893, which is actually about the Skill tool and a different bug). There's no dedicated tracking issue for the Edit variant, even though the Edit variant is the one I hit most often in practice.
Impact
- Clutters JSONL history with phantom failures that downstream tooling (task-forge error-collector, audit scripts) misclassifies as real plugin bugs
- Wastes tokens on retry narration
- Intermittent by nature so hard to build a repro for
Environment
- Claude Code CLI 2.1.80+
- Windows 11
- claude-opus-4-7 (1M context) via Bedrock
Suggested Fix
- Log the full tool-use input blob server-side when validation fails so the user/agent can tell whether the params were genuinely missing or were stripped in transit.
- If it's a transport-layer param-drop issue (as #36518 reporter observed across Read/Edit/Bash), it should be fixed in the transport, not worked around by retry narration.
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗