oc_normalize_action
Validate and normalize a near-valid browser action payload to fix aliases like left_click or missing click button, without executing the action.
Instructions
Validate and normalize a near-valid browser/computer action payload without executing it. Use this before calling real action tools when a host model produced aliases such as left_click, hotkey, coordinate, or missing click button. This tool is side-effect-free: it does not touch Chrome, CDP, tabs, DOM, cookies, storage, or files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | REQUIRED Candidate action object to validate and normalize. The action is never executed. | |
| targetTool | No | Optional target tool context. Currently advisory only; normalization remains side-effect-free. | |
| strict | No | When true (default), missing required fields and unsupported action types make ok=false. | |
| redactNormalized | No | When true, caller-provided string payload values in normalized output are replaced with '[REDACTED]'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| changed | Yes | ||
| normalized | No | ||
| warnings | Yes | ||
| errors | Yes | ||
| safety | Yes |