STEP_TYPES (src/step-types.ts)

mcp-chrome · packages/shared/src/step-types.ts · typescript · MIT
ui, tag:embed-classified

Centralized constants for all supported automation step types.

// Source: https://github.com/hangwin/mcp-chrome | License: MIT | Copyright 2024 hangye
// Provided via justclaw.it.com; keep this notice with the code.
// step-types.ts — centralized step type constants for UI + runtime

export const STEP_TYPES = {
  CLICK: 'click',
  DBLCLICK: 'dblclick',
  FILL: 'fill',
  TRIGGER_EVENT: 'triggerEvent',
  SET_ATTRIBUTE: 'setAttribute',
  SCREENSHOT: 'screenshot',
  SWITCH_FRAME: 'switchFrame',
  LOOP_ELEMENTS: 'loopElements',
  KEY: 'key',
  SCROLL: 'scroll',
  DRAG: 'drag',
  WAIT: 'wait',
  ASSERT: 'assert',
  SCRIPT: 'script',
  IF: 'if',
  FOREACH: 'foreach',
  WHILE: 'while',
  NAVIGATE: 'navigate',
  HTTP: 'http',
  EXTRACT: 'extract',
  OPEN_TAB: 'openTab',
  SWITCH_TAB: 'switchTab',
  CLOSE_TAB: 'closeTab',
  HANDLE_DOWNLOAD: 'handleDownload',
  

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key