Writing tools API

With iOS 18, Writing Tools are enabled for text fields all over the system. But under the hood, this uses Apple's on device LLM to summarize a piece of text. Is there any kind of Swift API to access this LLM summarization feature for pieces of text that I provide to the API? Instead of forcing the user to select the text.

Answered by DTS Engineer in 802386022

Hello all,

There is no direct summarization API, please file an enhancement request using Feedback Assistant to describe your use-cases in detail!

Best regards,

Greg

I second this — how do we leverage Writing Tools as developers.

LIke if someone has a

Recipe Title

And I want to create a Writing Tools button in my SwiftUI app that is like

( Give Recipe Title a Fun Name! xo )

And then leverage Writing Tools to rewrite the text with the prompt

"Rewrite this text in a more playful and fun fashion".

Etc. and all the use cases like this.

Accepted Answer

Hello all,

There is no direct summarization API, please file an enhancement request using Feedback Assistant to describe your use-cases in detail!

Best regards,

Greg

Writing tools API
 
 
Q