
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
Let the function $f(\theta) = \sqrt{3}\sin\theta + \cos\theta$, where the vertex of angle $\theta$ coincides with the origin of coordinates, the initial side coincides with the non-negative half-axis of the x-axis, and the terminal side passes through point P(x, y), and $0 \leq \theta \leq \pi$.

(1) If the coordinates of point P are $\left(\frac{\sqrt{3}}{2}, \frac{1}{2}\right)$, find the value of $f(\theta)$;  
(2) Find the value of $\theta$ that satisfies the condition $f(\theta) = 2$.

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