
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(x)=\cos 2x+2\sin x$.

(Ⅰ) Find the value of $f\left(-\frac{\pi}{6}\right)$;

(Ⅱ) When $x \in \left[-\frac{\pi}{2}, \frac{\pi}{2}\right]$, find the maximum value of the function $f(x)$ and the corresponding value of $x$.

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