Zum Hauptinhalt springen

Workflows

Functions for creating and reading workflows at a shallow level (metadata and linked tools). Higento creates the workflow shell; the full graph is built in the workflow editor.


workflow-create

Create a shallow workflow (name + trigger type + optional description). Placement uses the scoped folder when set, unless folderId is given.

Input

FieldTypeRequiredDescription
namestringYesWorkflow name (min 1 char).
triggerTypestringNoTrigger type (default manual).
descriptionstringNoDescription (defaults to New workflow).
folderIdstring | nullNoTarget folder; omit to use the assistant scope.

Output

FieldTypeDescription
workflowobject\{ id, name, type, folderId \}.

workflow-read

Read a workflow shallowly: id, name, type, folderId, plus the tools linked through its agent versions.

Input

FieldTypeRequiredDescription
workflowIdstringYesWorkflow id (wrk_…).

Output

FieldTypeDescription
workflowobject\{ id, name, type, folderId, tools: [\{ id, name \}] \}.