Let $X \subset \mathbb{P}^m$ be a smooth subvariety (e.g. a surface or some hypersurface) and $X^{[n]}$ be its Hilbert scheme of $n$ points. Which elements of $X^{[n]}$ determine an $(n - 1)$-dimensional linear subspace of $\mathbb{P}^m$? Is the collection of such elements locally closed/constructible? If not, is there a more "reasonable" way to think about this? I'm mostly interested in the case $n = 3$.

This may seem like a strange question since we can answer the question of when $n$ points in $\mathbb{P}^m$ determine an $(n - 1)$-dimensional linear subspace of $\mathbb{P}^m$ just using some linear algebra. The motivation for this question is that these "points" come from intersections of a variety with a linear subspace and can come with some kind of multiplicity. The simplest example is a point with a direction in $X^{[2]}$ for a curve $X$ which comes from the tangent line to a point in the plane $\mathbb{P}^2$ (keep track of point and direction of tangent line).

Two simple cases/examples with $X = \mathbb{A}^2$:

$n = 2$: We either have two distinct points or a point with a given direction. In each case, the point of $X^{[2]}$ determines a line.

$n = 3$: The situation here is a bit more complicated if we want a plane.

If the support is on three distinct points, it is enough to say that they are not collinear.

If the support is at two distinct points with one point and different point with a direction attached to it, it is enough to say that this direction is not the same as the line connecting these two points in order to determine a plane.

There is the case with support at one point. After analyzing the ideal, it turns out that there is a point with two different tangent directions attached to it or a point with a "triple nilpotent" (including both first and second order). The first part gives a plane and I don't think the second part would work.

Even with being able to do casework "geometrically", it's not clear to me how the cases for $n = 3$ above translate into algebraic conditions. Is there an $X$ (e.g. some surface) where such an analysis is feasible?