Does apple yet allow third party apps, like scriptable (javascript) or pythonista (python) to accept arguments provided via Siri voice commands, and if so, how can we access such arguments in a scriptable (javascript) script? If not, is there any work around such that someone can write a scriptable script and have it (somehow) accept some voice input?
What I know so far
Scriptable provides an example of args
from a 'share sheet' although it's not entirely clear if it's possible to receive an a similar args
variable via Siri voice
// Run from a share sheet to see which
// arguments are shared. Arguments are
// passed to a script when it is run
// from a share sheet.
// Configure the types of arguments
// a script supports from the script
// setttings. This script accepts all
// types of arguments and shows an alert
// with a summary of what ia being shared.
// This is useful to examine which
// values an app shares using the
// share sheet.
let summary = args.plainTexts.length
+ " texts\n"
+ args.images.length
+ " images\n"
+ args.urls.length
+ " URLs\n"
+ args.fileURLs.length
+ " file URLs"
let alert = new Alert()
alert.title = "Shared"
alert.message = summary
alert.addCancelAction("OK")
await alert.presentAlert()