Skip to content

edit_file tool: receiving string while expecting array . #310

@faustovrz

Description

@faustovrz

I can't use the edit_file tool. I have to avoid it and use write_file instead. Is there a difference in the number of tokens they use?

This is the typical error I get.

Error: Invalid arguments for edit_file: [
  {
    "code": "invalid_type",
    "expected": "array",
    "received": "string",
    "path": [
      "edits"
    ],
    "message": "Expected array, received string"
  }
]

Using codemcp in Claude Desktop.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions