One Logo Pool Ball
AppIntents · IOS API REFERENCE

AppSchema.BrowserIntent

protocol · iOS 18.0+ · SDK 27.1

protocol BrowserIntent : AppSchema.Kind

Identifies intent schemas in the browser domain.

Members (13)

get · iOS 18.0+

findOnPage

Swift declaration
var findOnPage: some AppSchemaIntent { get }

An intent schema that finds the given text on the selected tab. To make your app's actions available to Apple Intelligence, conform your ``AppIntent`` to a schema that describes your action to the system. If your app's functionality aligns with the `browser` domain and one of your app's actions matches the `findOnPage` schema, you can generate the properties and protocol conformance the schema requires for your intent implementation with the `@AppIntent( .browser.findOnPage)` Swift macro. To make your app work with Siri, see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>. The following example shows an intent that conforms to the `findOnPage` schema: ```swift @AppIntent(schema: .browser.findOnPage) struct FindOnPageIntent { var searchPhrase: String var tab: <#TabEntity#> func perform() async throws -> some IntentResult { <#code#> } } ``` The schema supports the following system experiences: - Shortcuts For more information about the App Intents framework and the experiences it supports, see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.

get · iOS 18.0+

bookmarkTab

Swift declaration
var bookmarkTab: some AppSchemaIntent { get }

An intent schema that creates a new bookmark for this tab. To make your app's actions available to Apple Intelligence, conform your ``AppIntent`` to a schema that describes your action to the system. If your app's functionality aligns with the `browser` domain and one of your app's actions matches the `bookmarkTab` schema, you can generate the properties and protocol conformance the schema requires for your intent implementation with the `@AppIntent( .browser.bookmarkTab)` Swift macro. To make your app work with Siri, see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>. The following example shows an intent that conforms to the `bookmarkTab` schema: ```swift @AppIntent(schema: .browser.bookmarkTab) struct BookmarkTabIntent { var tab: <#TabEntity#> var name: String? func perform() async throws -> some ReturnsValue<<#BookmarkEntity#>> { <#code#> } } ``` The schema supports the following system experiences: - Shortcuts For more information about the App Intents framework and the experiences it supports, see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.

get · iOS 18.0+

bookmarkURL

Swift declaration
var bookmarkURL: some AppSchemaIntent { get }

An intent schema that creates a new bookmark for a given URL. To make your app's actions available to Apple Intelligence, conform your ``AppIntent`` to a schema that describes your action to the system. If your app's functionality aligns with the `browser` domain and one of your app's actions matches the `bookmarkURL` schema, you can generate the properties and protocol conformance the schema requires for your intent implementation with the `@AppIntent( .browser.bookmarkURL)` Swift macro. To make your app work with Siri, see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>. The following example shows an intent that conforms to the `bookmarkURL` schema: ```swift @AppIntent(schema: .browser.bookmarkURL) struct BookmarkURLIntent { var url: URL var name: String? func perform() async throws -> some ReturnsValue<<#BookmarkEntity#>> { <#code#> } } ``` The schema supports the following system experiences: - Shortcuts For more information about the App Intents framework and the experiences it supports, see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.

get · iOS 18.0+

clearHistory

Swift declaration
var clearHistory: some AppSchemaIntent { get }

An intent schema that clears history, and related cookies and other website data. To make your app's actions available to Apple Intelligence, conform your ``AppIntent`` to a schema that describes your action to the system. If your app's functionality aligns with the `browser` domain and one of your app's actions matches the `clearHistory` schema, you can generate the properties and protocol conformance the schema requires for your intent implementation with the `@AppIntent( .browser.clearHistory)` Swift macro. To make your app work with Siri, see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>. The following example shows an intent that conforms to the `clearHistory` schema: ```swift @AppIntent(schema: .browser.clearHistory) struct ClearHistoryIntent { var timeFrame: <#ClearHistoryTimeFrameEnum#> func perform() async throws -> some IntentResult { <#code#> } } ``` The schema supports the following system experiences: - Shortcuts For more information about the App Intents framework and the experiences it supports, see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.

get · iOS 18.0+

closeWindows

Swift declaration
var closeWindows: some AppSchemaIntent { get }

An intent schema that closes the selected windows. To make your app's actions available to Apple Intelligence, conform your ``AppIntent`` to a schema that describes your action to the system. If your app's functionality aligns with the `browser` domain and one of your app's actions matches the `closeWindows` schema, you can generate the properties and protocol conformance the schema requires for your intent implementation with the `@AppIntent( .browser.closeWindows)` Swift macro. To make your app work with Siri, see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>. The following example shows an intent that conforms to the `closeWindows` schema: ```swift @AppIntent(schema: .browser.closeWindows) struct CloseWindowsIntent { var target: [<#WindowEntity#>] func perform() async throws -> some IntentResult { <#code#> } } ``` The schema supports the following system experiences: - Shortcuts For more information about the App Intents framework and the experiences it supports, see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.

get · iOS 18.0+

createWindow

Swift declaration
var createWindow: some AppSchemaIntent { get }

An intent schema that creates a new browser window. To make your app's actions available to Apple Intelligence, conform your ``AppIntent`` to a schema that describes your action to the system. If your app's functionality aligns with the `browser` domain and one of your app's actions matches the `createWindow` schema, you can generate the properties and protocol conformance the schema requires for your intent implementation with the `@AppIntent( .browser.createWindow)` Swift macro. To make your app work with Siri, see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>. The following example shows an intent that conforms to the `createWindow` schema: ```swift @AppIntent(schema: .browser.createWindow) struct CreateWindowIntent { var isPrivate: Bool func perform() async throws -> some ReturnsValue<<#WindowEntity#>> { <#code#> } } ``` The schema supports the following system experiences: - Shortcuts For more information about the App Intents framework and the experiences it supports, see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.

get · iOS 18.0+

openBookmark

Swift declaration
var openBookmark: some AppSchemaIntent { get }

An intent schema that opens the specified bookmark. To make your app's actions available to Apple Intelligence, conform your ``AppIntent`` to a schema that describes your action to the system. If your app's functionality aligns with the `browser` domain and one of your app's actions matches the `openBookmark` schema, you can generate the properties and protocol conformance the schema requires for your intent implementation with the `@AppIntent( .browser.openBookmark)` Swift macro. To make your app work with Siri, see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>. The following example shows an intent that conforms to the `openBookmark` schema: ```swift @AppIntent(schema: .browser.openBookmark) struct OpenBookmarkIntent: OpenIntent { var target: <#BookmarkEntity#> var tab: <#TabEntity#>? func perform() async throws -> some IntentResult { <#code#> } } ``` The schema supports the following system experiences: - Shortcuts For more information about the App Intents framework and the experiences it supports, see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.

get · iOS 18.0+

openURLInTab

Swift declaration
var openURLInTab: some AppSchemaIntent { get }

An intent schema that navigates a tab to the given URL. To make your app's actions available to Apple Intelligence, conform your ``AppIntent`` to a schema that describes your action to the system. If your app's functionality aligns with the `browser` domain and one of your app's actions matches the `openURLInTab` schema, you can generate the properties and protocol conformance the schema requires for your intent implementation with the `@AppIntent( .browser.openURLInTab)` Swift macro. To make your app work with Siri, see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>. The following example shows an intent that conforms to the `openURLInTab` schema: ```swift @AppIntent(schema: .browser.openURLInTab) struct LoadURLInTabIntent { var url: URL var tab: <#TabEntity#> func perform() async throws -> some IntentResult { <#code#> } } ``` The schema supports the following system experiences: - Shortcuts For more information about the App Intents framework and the experiences it supports, see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.

get · iOS 18.0+

deleteBookmarks

Swift declaration
var deleteBookmarks: some AppSchemaIntent { get }

An intent schema that deletes the selected bookmarks. To make your app's actions available to Apple Intelligence, conform your ``AppIntent`` to a schema that describes your action to the system. If your app's functionality aligns with the `browser` domain and one of your app's actions matches the `deleteBookmarks` schema, you can generate the properties and protocol conformance the schema requires for your intent implementation with the `@AppIntent( .browser.deleteBookmarks)` Swift macro. To make your app work with Siri, see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>. The following example shows an intent that conforms to the `deleteBookmarks` schema: ```swift @AppIntent(schema: .browser.deleteBookmarks) struct DeleteBookmarksIntent: DeleteIntent { var entities: [<#BookmarkEntity#>] func perform() async throws -> some IntentResult { <#code#> } } ``` The schema supports the following system experiences: - Shortcuts For more information about the App Intents framework and the experiences it supports, see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.

get · iOS 18.0+ · Deprecated in iOS 27.0

search

Swift declaration
var search: some AppSchemaIntent { get }

An intent schema that searches for the given string on the web. To make your app's actions available to Apple Intelligence, conform your ``AppIntent`` to a schema that describes your action to the system. If your app's functionality aligns with the `browser` domain and one of your app's actions matches the `search` schema, you can generate the properties and protocol conformance the schema requires for your intent implementation with the `@AppIntent( .browser.search)` Swift macro. To make your app work with Siri, see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>. The following example shows an intent that conforms to the `search` schema: ```swift @AppIntent(schema: .browser.search) struct SearchWebIntent: ShowInAppSearchResultsIntent { static var searchScopes: [StringSearchScope] = [.general] var criteria: StringSearchCriteria func perform() async throws -> some IntentResult { <#code#> } } ``` The schema supports the following system experiences: - Siri - Shortcuts For more information about the App Intents framework and the experiences it supports, see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.

get · iOS 18.0+

closeTabs

Swift declaration
var closeTabs: some AppSchemaIntent { get }

An intent schema that closes the selected tabs. To make your app's actions available to Apple Intelligence, conform your ``AppIntent`` to a schema that describes your action to the system. If your app's functionality aligns with the `browser` domain and one of your app's actions matches the `closeTabs` schema, you can generate the properties and protocol conformance the schema requires for your intent implementation with the `@AppIntent( .browser.closeTabs)` Swift macro. To make your app work with Siri, see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>. The following example shows an intent that conforms to the `closeTabs` schema: ```swift @AppIntent(schema: .browser.closeTabs) struct CloseTabsIntent { var target: [<#TabEntity#>] func perform() async throws -> some IntentResult { <#code#> } } ``` The schema supports the following system experiences: - Shortcuts For more information about the App Intents framework and the experiences it supports, see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.

get · iOS 18.0+

createTab

Swift declaration
var createTab: some AppSchemaIntent { get }

An intent schema that creates a new tab with a URL loaded, or blank if omitted. To make your app's actions available to Apple Intelligence, conform your ``AppIntent`` to a schema that describes your action to the system. If your app's functionality aligns with the `browser` domain and one of your app's actions matches the `createTab` schema, you can generate the properties and protocol conformance the schema requires for your intent implementation with the `@AppIntent( .browser.createTab)` Swift macro. To make your app work with Siri, see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>. The following example shows an intent that conforms to the `createTab` schema: ```swift @AppIntent(schema: .browser.createTab) struct CreateTabIntent { var url: URL? var isPrivate: Bool func perform() async throws -> some ReturnsValue<<#TabEntity#>> { <#code#> } } ``` The schema supports the following system experiences: - Shortcuts For more information about the App Intents framework and the experiences it supports, see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.

get · iOS 18.0+

switchTab

Swift declaration
var switchTab: some AppSchemaIntent { get }

An intent schema that switches to an existing tab. To make your app's actions available to Apple Intelligence, conform your ``AppIntent`` to a schema that describes your action to the system. If your app's functionality aligns with the `browser` domain and one of your app's actions matches the `switchTab` schema, you can generate the properties and protocol conformance the schema requires for your intent implementation with the `@AppIntent( .browser.switchTab)` Swift macro. To make your app work with Siri, see <doc://com.apple.documentation/documentation/appintents/apple-intelligence-and-siri-ai>. The following example shows an intent that conforms to the `switchTab` schema: ```swift @AppIntent(schema: .browser.switchTab) struct SwitchToTabIntent: OpenIntent { var target: <#TabEntity#> func perform() async throws -> some IntentResult { <#code#> } } ``` The schema supports the following system experiences: - Shortcuts For more information about the App Intents framework and the experiences it supports, see <doc://com.apple.documentation/documentation/appintents/getting-started-with-the-app-intents-framework>.

Skipped declarations

No declarations were skipped in this snapshot.

All AppIntents types →