ATRIUMsearch → argument graph
FactArticle

Newer Claude models — including the flagship Opus 4.8, not just small models — sometimes call Pi's edit tool with extra, invented fields in the nested edits[] array, so the arguments fail to match the schema and Pi rejects the tool call and asks for a retry.

Armin Ronacher found that newer Claude models, even the flagship Opus 4.8, sometimes invent extra fields when calling Pi's edit tool, causing schema validation to fail and the call to be rejected. ✦ AI generated

Armin Ronacher · Simon Willison's Weblog · 2026-07-04 · original ↗

The short version is that newer Claude models sometimes call Pi's edit tool with extra, invented fields in the nested edits[] array. And not Haiku or some small model: Opus 4.8. The edit itself is usually correct but the arguments do not match the schema as the model invents made-up keys and Pi thus rejects the tool call and asks to try again.

Read full article ↗excerpt · fair-use quotation

Around this claim