Skip to main content
Glama

Peekaboo MCP

by steipete
ElementIDGenerator.swift1.24 kB
import Foundation /// Helper for generating element IDs in tests enum ElementIDGenerator { /// Get the prefix for a given role static func prefix(for role: String) -> String { switch role { case "AXButton": "B" case "AXTextField", "AXTextArea": "T" case "AXStaticText": "S" case "AXLink": "L" case "AXImage": "I" case "AXGroup": "G" case "AXWindow": "W" case "AXCheckBox": "C" case "AXRadioButton": "R" case "AXPopUpButton": "P" case "AXComboBox": "CB" case "AXSlider": "SL" case "AXProgressIndicator": "PI" case "AXTable": "TB" case "AXOutline": "OL" case "AXBrowser": "BR" case "AXScrollArea": "SA" case "AXMenu": "M" case "AXMenuItem": "MI" default: "E" // Generic element } } /// Check if a role is actionable static func isActionableRole(_ role: String) -> Bool { switch role { case "AXButton", "AXCheckBox", "AXRadioButton", "AXLink", "AXMenuItem", "AXPopUpButton", "AXComboBox", "AXTextField", "AXTextArea", "AXSlider": true default: false } } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/steipete/Peekaboo'

If you have feedback or need assistance with the MCP directory API, please join our Discord server