func perform() async throws -> some IntentResult & ReturnsValue {
let viewContext = PersistenceController.shared.container.viewContext
let fetchRequest = NSFetchRequest<CapturaRemoteFile>(entityName: "CapturaRemoteFile")
fetchRequest.fetchLimit = min(10, max(1, count ?? 5))
fetchRequest.sortDescriptors = [NSSortDescriptor(key: "timestamp", ascending: false)]
func perform() async throws -> some IntentResult & ReturnsValue {
let viewContext = PersistenceController.shared.container.viewContext
let fetchRequest = NSFetchRequest<CapturaRemoteFile>(entityName: "CapturaRemoteFile")
fetchRequest.fetchLimit = min(10, max(1, count ?? 5))
fetchRequest.sortDescriptors = [NSSortDescriptor(key: "timestamp", ascending: false)]