{
  "model_name": "test-tool-error-feedback",
  "expects": {
    "tools_used": ["write_file"],
    "min_responses": 1
  },
  "steps": [
    {
      "request_hint": { "last_user_message_contains": "write" },
      "response": {
        "type": "tool_calls",
        "tool_calls": [
          {
            "id": "call_bad_write",
            "name": "write_file",
            "arguments": { "path": "/nonexistent_root_dir_xyz/impossible/file.txt", "content": "test" }
          }
        ],
        "input_tokens": 100,
        "output_tokens": 25
      }
    },
    {
      "response": {
        "type": "tool_calls",
        "tool_calls": [
          {
            "id": "call_good_write",
            "name": "write_file",
            "arguments": { "path": "/tmp/ironclaw_error_feedback_test/recovered.txt", "content": "recovered content" }
          }
        ],
        "input_tokens": 200,
        "output_tokens": 25
      }
    },
    {
      "response": {
        "type": "text",
        "content": "The first write failed because the directory didn't exist. I retried with a valid path and the file was written successfully.",
        "input_tokens": 300,
        "output_tokens": 30
      }
    }
  ]
}
