---
id: 20260705-T0-02
title: "Claude Opus 4.8 调用编辑工具时添加多余字段，工具兼容性受损"
title_en: "Claude Opus 4.8 Adds Invented Fields When Calling Edit Tool, Breaking Compatibility"
url: https://ai.daily.yangsir.net/daily/20260705-T0-02
issue_date: 2026-07-05
publish_date: 2026-07-04T22:53:52.000Z
category: insight
source_name: "Simon Willison"
source_url: https://simonwillison.net/2026/Jul/4/better-models-worse-tools/#atom-everything
---

# Claude Opus 4.8 调用编辑工具时添加多余字段，工具兼容性受损

开发者 Armin 报告了一个在修改 Pi 项目时遇到的奇怪问题：新的 Claude 模型（包括 Opus 4.8）在调用编辑工具时，会在嵌套的 `edits[]` 数组中添加额外的、虚构的字段。问题并非出在小模型 Haiku 上，而是来自旗舰模型 Opus 4.8。虽然编辑本身通常正确，但这些多余字段导致依赖固定工具接口的工具或脚本产生错误。该问题表明，模型能力越强，反而可能引入工具调用格式的意外偏差，影响现有工作流的兼容性。

## English Version

**Claude Opus 4.8 Adds Invented Fields When Calling Edit Tool, Breaking Compatibility**

Developer Armin reports a strange bug while hacking on Pi: newer Claude models, including Opus 4.8, sometimes add extra, invented fields in the nested `edits[]` array when calling the edit tool. The issue occurs with the flagship Opus 4.8, not smaller models like Haiku. Although the edit itself is correct, these extra fields cause errors in tools that expect a fixed format. This suggests that more powerful models may introduce unexpected format deviations, undermining tool compatibility.

---

**来源**：[Simon Willison](https://simonwillison.net/2026/Jul/4/better-models-worse-tools/#atom-everything)

**详情页**：https://ai.daily.yangsir.net/daily/20260705-T0-02

---

*智语观潮 · Daily — https://ai.daily.yangsir.net/llms.txt*