iOS coding: interacting with apps/API's helpWatch
However Im not sure if this sort of accessibility is available on iPhone- can you even develop a script that uses apis within different apps? I assume you'd have to jailbreak your phone initially.
Anyways any help is much appreciated.
I imagine you might find some password managers which have to autofil in usernames and passwords in other applications useful for your own script (which sounds like it is similar?). Try inspecting the Bitwarden app on github.