[guided]The goal of this step is to isolate a large ideal $\mathfrak h$ so that $\mathfrak g$ differs from $\mathfrak h$ by only one direction. If $\dim_F\mathfrak g=1$, then $\mathfrak h=\{0\}$ has exactly this property. So assume $\dim_F\mathfrak g>1$ and choose a maximal proper Lie subalgebra $\mathfrak h\subsetneq\mathfrak g$.
We define
\begin{align*}
N_{\mathfrak g}(\mathfrak h)
:=
\{y \in \mathfrak g : [y,h]\in \mathfrak h \text{ for every } h \in \mathfrak h\}.
\end{align*}
This is the set of elements of $\mathfrak g$ whose adjoint action preserves $\mathfrak h$. We want to show that the normaliser is larger than $\mathfrak h$.
Consider the quotient vector space $\mathfrak g/\mathfrak h$. For each $a\in\mathfrak h$, define
\begin{align*}
\rho(a): \mathfrak g/\mathfrak h &\to \mathfrak g/\mathfrak h \\
y+\mathfrak h &\mapsto [a,y]+\mathfrak h.
\end{align*}
This is well-defined: if $y+\mathfrak h=y'+\mathfrak h$, then $y-y'\in\mathfrak h$, and since $\mathfrak h$ is a Lie subalgebra, $[a,y-y']\in\mathfrak h$. Hence $[a,y]+\mathfrak h=[a,y']+\mathfrak h$.
The map
\begin{align*}
\rho: \mathfrak h &\to \mathfrak{gl}(\mathfrak g/\mathfrak h) \\
a &\mapsto \rho(a)
\end{align*}
is a Lie algebra homomorphism. To verify the sign convention, fix $a,b\in\mathfrak h$ and $y\in\mathfrak g$. The commutator in $\mathfrak{gl}(\mathfrak g/\mathfrak h)$ gives
\begin{align*}
[\rho(a),\rho(b)](y+\mathfrak h)
&= \rho(a)([b,y]+\mathfrak h)-\rho(b)([a,y]+\mathfrak h) \\
&= [a,[b,y]]-[b,[a,y]]+\mathfrak h \\
&= [[a,b],y]+\mathfrak h \\
&= \rho([a,b])(y+\mathfrak h),
\end{align*}
where the third equality is the Jacobi identity. Thus $[\rho(a),\rho(b)]=\rho([a,b])$. Each $\rho(a)$ is nilpotent: indeed, $\rho(a)$ is induced by $\operatorname{ad}_a$, and the previous step proved that $\operatorname{ad}_a$ is nilpotent on $\mathfrak g$.
Now $\mathfrak g/\mathfrak h$ is a non-zero finite-dimensional vector space, and $\rho(\mathfrak h)$ is a Lie subalgebra of $\mathfrak{gl}(\mathfrak g/\mathfrak h)$ of dimension at most $\dim_F\mathfrak h<n$. Therefore the induction hypothesis applies to the action of $\rho(\mathfrak h)$ on $\mathfrak g/\mathfrak h$. It gives a non-zero coset $y+\mathfrak h$ such that
\begin{align*}
\rho(a)(y+\mathfrak h)=0
\end{align*}
for every $a\in\mathfrak h$. Unpacking the definition of $\rho$, this means
\begin{align*}
[a,y]\in\mathfrak h
\end{align*}
for every $a\in\mathfrak h$. Since $[y,a]=-[a,y]$, this is equivalent to $[y,a]\in\mathfrak h$ for every $a\in\mathfrak h$, so $y\in N_{\mathfrak g}(\mathfrak h)$. The coset $y+\mathfrak h$ is non-zero, hence $y\notin\mathfrak h$. Thus the normaliser is strictly larger than $\mathfrak h$.
The normaliser is itself a Lie subalgebra. Closure under scalar multiplication and addition follows from bilinearity of the bracket. For closure under the Lie bracket, take $u,v\in N_{\mathfrak g}(\mathfrak h)$ and $h\in\mathfrak h$. By the Jacobi identity,
\begin{align*}
[[u,v],h]
&= [u,[v,h]]-[v,[u,h]].
\end{align*}
Because $v$ normalises $\mathfrak h$, we have $[v,h]\in\mathfrak h$; because $u$ normalises $\mathfrak h$, this implies $[u,[v,h]]\in\mathfrak h$. Similarly, $[u,h]\in\mathfrak h$ and then $[v,[u,h]]\in\mathfrak h$. Since $\mathfrak h$ is a vector subspace, the difference also lies in $\mathfrak h$. Therefore $[[u,v],h]\in\mathfrak h$ for every $h\in\mathfrak h$, so $[u,v]\in N_{\mathfrak g}(\mathfrak h)$. Thus $N_{\mathfrak g}(\mathfrak h)$ is a Lie subalgebra. It contains $\mathfrak h$ and is not equal to $\mathfrak h$, so maximality of $\mathfrak h$ forces $N_{\mathfrak g}(\mathfrak h)=\mathfrak g$. This says exactly that $[y,h]\in\mathfrak h$ for all $y\in\mathfrak g$ and $h\in\mathfrak h$, which is the definition that $\mathfrak h$ is an ideal.
Finally, maximality gives codimension one. Since $\mathfrak h$ is an ideal, $\mathfrak g/\mathfrak h$ is a Lie algebra. If its dimension were larger than one, it would contain a one-dimensional proper Lie subalgebra; taking its inverse image in $\mathfrak g$ would produce a proper Lie subalgebra strictly between $\mathfrak h$ and $\mathfrak g$, contradicting maximality. Hence
\begin{align*}
\dim_F(\mathfrak g/\mathfrak h)=1.
\end{align*}[/guided]