Defines Swift types for UI automation actions and execution results.
// Source: https://github.com/openclaw/Peekaboo | License: MIT | Copyright 2025 Peter Steinberger
// Provided via justclaw.it.com; keep this notice with the code.
import CoreGraphics
import Foundation
import PeekabooFoundation
/// Automation action
public enum AutomationAction: Sendable {
case click(target: ClickTarget, type: ClickType)
case type(text: String, target: String?, clear: Bool)
case scroll(direction: ScrollDirection, amount: Int, target: String?)
case hotkey(keys: String)
case wait(milliseconds: Int)
}
/// Result of automation
public struct AutomationResult: Sendable {
public let snapshotId: String
public let actions: [ExecutedAction]
public let initialScreenshot: String?
public init(snapshotId: String, actions: [ExecutedAction], initialSc
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key