Following the style presented by fiacobelli's answer.
On Preamble insert the packages
\usepackage{tikz}
\usepackage{adjustbox}
My advice is to create a new command
\newcommand{\figTikzAdjustShortCap}[4]
{
\centering
\adjustbox{#1}{\input{#2}}
\caption[#4]{#3}
}
You may create variations changing the "adjustbox" line to:
\resizebox{#1\linewidth}{#2\linewidth}{\input{#3}}
or
\scalebox{#1}{\input{#2}}
remembering to correct the number of inputs of the \newcommand.
This follow the same standard I use for includegraphics:
\newcommand{\figIncLongCap}[3]
{
\centering
\includegraphics[#1]{#2}
\caption{#3}
}
I like it because let me change the caption position of all figure in a single move.
And you may use it inside Figure environment, where "Fig_Tikz" is a .tex file.
\begin{figure}[h]
\figTikzAdjustLongCap
{width = 0.8\linewidth, keepaspectratio, trim = 1.5cm 2cm 3cm 0cm, clip = true}
{Fig_Tikz}
{Tikz with \textit{AdjustBox} and \textit{Trim} Caption}
\label{Fig_Tikz}
\end{figure}
This results gives you the same structure of a includegraphic command:
\begin{figure}[h]
\figIncLongCap
{width = 0.5\linewidth, trim = 0cm 1cm 0cm 0cm, clip = true}
{Fig_not_tikz}
{Fig not Tikz Caption.}
\label{Fig_not_tikz}
\end{figure}
This option let us work and format a \input exactly like a \includegraphic.
I prefer to use the figure environment because of the label highlight and "click and found" features of TexStudio and others LaTeX editors.