J.R. S. answered 02/04/23
Ph.D. University Professor with 10+ years Tutoring Experience
AgCl(s) + 2NH3(aq) ==> [Ag(NH3)2]+(aq) + Cl-(aq) ... equation for formation of complex
Ag+(aq) + 2NH3(aq) ==> [Ag(NH3)2]+(aq) ... net equation for formation of complex
Ammonia increases solubility of AgCl because it essential removes Ag+ from solution (see net equation) and according to Le Chatelier, this pulls reaction to the product side, thus increasing solubility of AgCl(s).
Here, Ag+ is acting as a Lewis acid and NH3 is acting as a Lewis base.
When the complex ion [Ag(NH3)2]+ is acidified, the complex is destroyed, and the Ag+ precipitates again as AgCl(s).
[Ag(NH3)2]+(aq) + Cl-(aq) + 2H+(aq) ==> AgCl(s) + 2NH4+(aq) ... precipitation in presence of H+