Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

677 B
Raw Blame
import { BrowserApiName } from '../../types';
import PageAction from './PageAction';
import { PageDump } from './PageDump';
import Screenshot from './Screenshot';

/**
 * Browser Tool Render Components Registry — keyed by api name.
 */
export const BrowserRenders = {
  [BrowserApiName.click]: PageAction,
  [BrowserApiName.fill]: PageAction,
  [BrowserApiName.navigate]: PageAction,
  [BrowserApiName.press]: PageAction,
  [BrowserApiName.readPage]: PageDump,
  [BrowserApiName.screenshot]: Screenshot,
  [BrowserApiName.scroll]: PageAction,
  [BrowserApiName.setViewport]: PageAction,
  [BrowserApiName.snapshot]: PageDump,
};

export { PageAction, PageDump, Screenshot };