
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
Given the function $f\left(x\right)=x^{2}-ax+4-a^{2}$ with the domain $\left[-2,3\right]$.<br/>$(1)$ When $a=2$, find the range of the function $f\left(x\right)$;<br/>$(2)$ Let $p:a\in M$, $q:\forall x\in \left[-2,2\right]$, $f\left(x\right)\leqslant 0$. If $p$ is a sufficient but not necessary condition for $q$, write a set $M$ that satisfies the condition and explain the reason.

Present the answer in LaTex format: \boxed{Your answer}
user