askew_run
Execute a pre-defined Apple Shortcut route on your iPhone, iPad, or Mac and retrieve its decrypted result, even while the device is locked.
Instructions
Run a Shortcut (a 'route') on the user's iPhone, iPad or Mac and return its result. Works while the phone is locked: the relay pushes a notification, one dispatcher automation runs the target Shortcut, and the result comes back end-to-end encrypted. Behavior: call askew_list_routes first; each route lists an inputExample and the input MUST use exactly those keys (dates 'YYYY-MM-DD HH:mm'), otherwise the call is rejected before anything runs. Waits up to wait seconds (default 45) and returns status (done | failed | unknown | pending), the decrypted result text and a timeline. If status is 'unknown' or 'pending', poll with askew_get_run using the returned jobId. Usage: one route per call; do not retry a failed job blindly — read the error text, fix the input, or ask the user. Use idempotencyKey when you must retry a network error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Seconds to wait for the result, 0–60 (default 45). 0 returns immediately with status 'pending'; poll with askew_get_run. A locked phone usually answers within 1–3 seconds. | |
| input | Yes | Input for the Shortcut. MUST follow the route's inputExample from askew_list_routes: the same JSON keys, dates as 'YYYY-MM-DD HH:mm', send "" for keys you do not need. A JSON object for routes whose example is an object; a plain string only for routes whose example is a string. A mismatched input is rejected before anything runs on the phone. | |
| routeId | No | Route id from askew_list_routes (e.g. 'rt_…'). Give either routeId or routeName; routeId wins when both are present. | |
| routeName | No | Route name from askew_list_routes (e.g. 'calendar.add'). Case-sensitive. Use this when you know the name but not the id. | |
| idempotencyKey | No | Optional client-chosen key (≤200 chars). Re-sending the same key returns the existing job instead of running the Shortcut again; use it for retries. |