Since it can't be done normally, you might want to consider looking into the sagetex package, documentation here can handle. The package gives you a computer algebra system, called Sage, and access to the Python programming language. The compilation is a 3 step process. The first time LaTeX must run without problems. Next Sage runs. The final step is to put the Sage results/calculations into the document. Since your code depends on coordinates that Sage must use, the output is put into a string. The first pass will be an empty document. The second pass uses Sage to take the coordinates you want. It creates a string which is the code you wanted for your picture. The final step of processing puts the string into the document, which gives the picture. In the code below, %d is a placeholder for an integer; %f is for floating point numbers, %s for strings. The part of the code %(c1[0],c1[1],c1[2]) is telling Sage what goes in the 3 %d arguments before it. The r"" is for raw strings which let us use problematic text, such as \, without problems.
\documentclass[11pt,border=1mm]{article}
\usepackage{sagetex,tikz,pgfplots}
\pgfplotsset{compat=1.16}
\begin{document}
\begin{sagesilent}
def MyPatch(c1,c2,c3):
output = r""
output += r"\begin{figure}"
output += r"\begin{tikzpicture}"
output += r"\begin{axis}"
output += r"\coordinate (a) at (%d, %d, %d);"%(c1[0],c1[1],c1[2])
output += r"\coordinate (b) at (%d, %d, %d);"%(c2[0],c2[1],c2[2])
output += r"\coordinate (c) at (%d, %d, %d);"%(c3[0],c3[1],c3[2])
output += r"\addplot3 [patch,table/row sep=\\,patch table={"
output += r"0 1 2\\"
output += r"}] table {"
output += r"%d %d %d\\"%(c1[0],c1[1],c1[2])
output += r"%d %d %d\\"%(c2[0],c2[1],c2[2])
output += r"%d %d %d\\"%(c3[0],c3[1],c3[2])
output += r"};"
output += r"\end{axis}"
output += r"\end{tikzpicture}"
output += r"\end{figure}"
return output
a1=[0,0,0]
a2=[1,0,0]
a3=[0,1,0]
pic = MyPatch(a1,a2,a3)
\end{sagesilent}
\sagestr{pic}
\end{document}

The code is set up defining a function which handles your problem. You can change a1,a2,a3 to other coordinates (each component an integer) recompile and get the updated picture.
Sage is not part of the LaTeX distribution. The easiest way to get started is through a free Cocalc account. It's possible to avoid that by downloading Sage to your computer and getting it to work with your LaTeX distribution. This can be easy or, in some cases, difficult. With Cocalc you can be up and running in 5 minutes.
coordinateit loses the z component and you need that for the plot. (unless z=0 for all your points?) – hpekristiansen Feb 19 '22 at 03:52