In atomic force microscopy experiments on fluid samples, a capillary bridge forms between the tip and the fluid, causing an attractive capillary force. Here, we present a computational model of the capillary interaction between a solid sphere and a coarse-grained Lennard-Jones fluid containing 10% antifreeze particles with an enlarged van der Waals radius. The capillary force acting on the sphere is obtained from the displacement of the sphere in a trap potential as the sphere is incrementally approached and then retracted from the fluid. This yields force-distance data similar to that obtained in atomic force microscopy experiments. We use this methodology to study the influence of the cutoff radius of the truncated Lennard-Jones potentials on the capillary force and its temperature dependence. The latter is found to scale with the critical temperature of the system. With the presented approach, the tip-sample interaction can be studied for a wide range of complex fluids, particle shapes, and force-probing schemes.