Parameters
| Name | Type | Required | Meaning |
|---|---|---|---|
url |
string | yes | The workflow's link on codycody.com, its /workflow.json link, or its slug. |
confirmed |
boolean | no | true only after the user has seen the preview and agreed. |
folder |
string | no | The folder (package) to create it in. Defaults to community. |
Returns
Without confirmed: a preview — name, author, every step, each shell command in full, and warnings (commands it runs, workflows it starts that the engine does not have). Nothing is created.
With confirmed: true: the created workflow's id, name, folder and status — always draft.
Notes
The agent must show every shell command to the user and ask before the confirmed call. An imported workflow runs only after it is published in the engine GUI, which needs Pro; on Starter the result says so and points at the workflow's free trial. Links to any site other than codycody.com are refused. See Import a shared workflow.