diegosouzapw/OmniRoute · error · Error
Unknown action
Error message
Unknown action: ${action} What it means
Input validation guard at the entry of the browser skill handler: the `action` field of the skill input is checked against the allow-list (navigate, click, type, screenshot, extract) before anything runs. Any other value — including undefined or a typo — trips this guard. Note the skill is currently a stub that always throws a disabled error afterward, so this is purely an input-shape rejection.
Solutions
- Set action to one of: navigate, click, type, screenshot, extract
- Check the skill invocation payload for typos or a missing action field
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/lib/skills/builtin/browser.ts:12 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25).
Data as JSON: /api/errors/5f19c3811a40154c.
Report an issue: GitHub.
Appendix: source
Thrown at src/lib/skills/builtin/browser.ts:12
import { SkillHandler } from "../types";
export const browserSkill: SkillHandler = async (input, context) => {
const { action } = input as {
action: "navigate" | "click" | "type" | "screenshot" | "extract";
url?: string;
selector?: string;
text?: string;
};
if (!["navigate", "click", "type", "screenshot", "extract"].includes(action)) {
throw new Error(`Unknown action: ${action}`);
}
throw new Error(
"Browser automation skill is disabled. Configure a Playwright-backed browser runtime before enabling this skill."
);
};
export function registerBrowserSkill(executor: any): void {
executor.registerHandler("browser", browserSkill);
}
View on GitHub (pinned to a179ffed5b)