Step 1: Find the cosine value first:
The angle $\frac{7\pi}{6}$ is $\pi+\frac{\pi}{6}$, in the third quadrant where cosine is negative.
\[ \cos\frac{7\pi}{6}=-\cos\frac{\pi}{6}=-\frac{\sqrt{3}}{2} \]
Step 2: Take the inverse cosine:
We now need $\cos^{-1}\left(-\frac{\sqrt{3}}{2}\right)$, an angle in $[0,\pi]$.
Use $\cos^{-1}(-x)=\pi-\cos^{-1}x$.
\[ \cos^{-1}\left(-\frac{\sqrt{3}}{2}\right)=\pi-\frac{\pi}{6}=\frac{5\pi}{6} \]
Step 3: Match with the options by elimination:
The answer must lie in $[0,\pi]$, so $\frac{7\pi}{6}$ in (A) is out.
The cosine is negative, so the angle is more than $\frac{\pi}{2}$. This rules out $\frac{\pi}{3}$ in (C) and $\frac{\pi}{6}$ in (D).
Only $\frac{5\pi}{6}$ in (B) is left.
Final Answer:
The value is $\frac{5\pi}{6}$, option (B).
\[ \boxed{\frac{5\pi}{6}} \]