Use the profile CDP session
Start the profile through Local API and connect to data.ws.puppeteer. The same WebSocket carries page commands and the Ombra domain. The domain is browser-level: in Playwright, create a browser session with browser.newBrowserCDPSession(); in Puppeteer, use browser.target().createCDPSession(). A page session does not expose it. The built-in module must be enabled for the profile; otherwise the browser starts without it and the domain refuses CAPTCHA calls.
const session = await browser.newBrowserCDPSession();
const state = await session.send('Ombra.getCaptchaState');
console.log(state);One browser session covers every tab in the profile. Keep it open while CAPTCHA may appear, and use the state of the challenge to identify the page it belongs to.
The Ombra domain
The domain exposes Ombra.getCaptchaState, Ombra.setCaptchaPolicy and Ombra.solveCaptcha. getCaptchaState returns the current CAPTCHA state, including the active policy and detected challenges; setCaptchaPolicy changes the policy for the running browser; solveCaptcha asks the built-in module to solve the current challenge. Call getCaptchaState after navigation and before clicking a challenge; the state can change when a new round appears.
These methods are part of the browser build, not the Local API. A client that connects only over HTTP cannot call them.
Events
The domain emits CAPTCHA events on the browser session without an enable call, including captchaSolving, captchaSolved and captchaFailed. Subscribe before you navigate to the page that may show a CAPTCHA.
session.on('Ombra.captchaSolved', event => {
console.log('solved', event);
});
session.on('Ombra.captchaFailed', event => {
console.log('failed', event);
});Event names use the domain prefix, as with other CDP domains. The exact payload depends on the build and the challenge type; log it during development instead of assuming fields. Remove listeners when the page closes to avoid handling events from an old session.
Policy and manual mode
Ombra.setCaptchaPolicy changes the policy for the current browser. The profile stores the CAPTCHA settings, and the manager passes them at launch; a policy change over CDP affects the running session and is not saved to the profile. To change the stored settings, edit the profile; the new values apply on the next launch.
Manual mode belongs to the profile configuration. A script can observe the state, but the user still resolves the challenge in the browser window. The module pauses its own actions while manual input is active.
RPA uses the same methods
Ombra automation uses the same CDP methods for CAPTCHA detection and solving. A script and a workflow therefore see the same challenge state; only the caller differs. The RPA editor does not add a separate HTTP channel.
This does not guarantee a solution. The module works with supported challenge types, and the result depends on the task, the browser build and the configured policy.
No REST methods for CAPTCHA
There are no /api/.../captcha methods. A request to a guessed CAPTCHA path returns 404. Use the Ombra domain over the profile WebSocket, and keep the Local API key out of the page context.
For launch steps, see Launch and stop a profile. For client setup, see Playwright and Puppeteer. The built-in module and its supported tasks are described in CAPTCHA solving.