High-risk tools in Playwright
30 of the 83 tools in Playwright are classified as high risk. This page profiles those tools specifically, with recommended policy actions and the attack patterns that target them.
Every operation listed below is an action PolicyLayer recommends controlling at the transport layer. Open any tool to see the full profile, risk score, and YAML policy snippet.
Tools at high risk
-
browser_checkExecuteCheck a checkbox or radio button
-
browser_clickExecutePerform click on a web page
-
browser_closeExecuteClose the page
-
browser_dragExecutePerform drag and drop between two elements
-
browser_emulate_mediaExecuteEmulate CSS media features for the page, for example switch between the light and dark color scheme. Omitted parameters are left unchanged; null clears an override.
-
browser_evaluateExecuteEvaluate JavaScript expression on page or element
-
browser_file_uploadExecuteUpload one or multiple files
-
browser_fill_formExecuteFill multiple form fields
-
browser_handle_dialogExecuteHandle a dialog
-
browser_hoverExecuteHover over element on page
-
browser_mouse_click_xyExecuteClick mouse button at a given position
-
browser_mouse_drag_xyExecuteDrag left mouse button to a given position
-
browser_mouse_move_xyExecuteMove mouse to a given position
-
browser_navigateExecuteNavigate to a URL
-
browser_navigate_backExecuteGo back to the previous page in the history
-
browser_navigate_forwardExecuteGo forward to the next page in the history
-
browser_press_keyExecutePress a key on the keyboard
-
browser_reloadExecuteReload the current page
-
browser_resizeExecuteResize the browser window
-
browser_run_code_unsafeExecuteRun a Playwright code snippet. Unsafe: executes arbitrary JavaScript in the Playwright server process and is RCE-equivalent.
-
browser_select_optionExecuteSelect an option in a dropdown
-
browser_start_recordingExecuteStart recording actions that the user performs in the browser as Playwright code. Use it when the user wants to demonstrate a flow manually. Call browser_stop_recording when the...
-
browser_start_tracingExecuteStart trace recording
-
browser_start_videoExecuteStart video recording
-
browser_stop_recordingExecuteStop the recording started with browser_start_recording and return the recorded actions as Playwright code.
-
browser_stop_tracingExecuteStop trace recording
-
browser_stop_videoExecuteStop video recording
-
browser_tabsExecuteList, create, close, or select a browser tab.
-
browser_typeExecuteType text into editable element
-
browser_wait_forExecuteWait for text to appear or disappear or a specified time to pass. When both text and textGone are provided, waits for the first one to happen
Attacks that target this class
High-risk tools in any server share these documented attack patterns. Each links to the full case and the defensive policy.