Skip to main content
Glama
SnapshotValidation.swift675 B
import Foundation import PeekabooCore import PeekabooFoundation @MainActor enum SnapshotValidation { static func requireDetectionResult( snapshotId: String, snapshots: any SnapshotManagerProtocol ) async throws -> ElementDetectionResult { guard let result = try await snapshots.getDetectionResult(snapshotId: snapshotId) else { throw PeekabooError.snapshotNotFound( """ Snapshot '\(snapshotId)' was not found (or has no UI map). \ Run 'peekaboo see' again or omit --snapshot to use the most recent snapshot. """ ) } return result } }

Latest Blog Posts

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