Manage Workflow definition
workflow_definitionManage customer-owned Workflow code: list, create, update, get, clone, archive, or save. Use for authoring and versioning only; use workflow_validate to check code and workflow_run to execute it. save publishes one exact draft revision and requires that revision to have passed workflow_validate. None of these actions runs code or charges credits.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "workflow_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional new Workflow name for clone. | |
| view | No | Response detail for get; defaults to summary. Full includes bounded source, versions, and validations. | |
| limit | No | Page size for list: max 100. | |
| query | No | Optional case-insensitive name filter for list. | |
| action | Yes | Lifecycle action. Its required fields are described below. | |
| cursor | No | Opaque next_cursor returned by a prior list with the same filters. | |
| source | No | Complete inline files or a tenant-owned artifact for create/update; mutually exclusive with source_patch. Prefer the artifact returned by a successful inline check. | |
| status | No | Definition status filter for list; defaults to active. | |
| revision | No | Exact current draft revision for update, archive, or save. | |
| workflow_id | No | Required for get, update, clone, archive, and save. | |
| source_patch | No | Path-scoped update retaining omitted draft files. Pass exactly one of files (whole-file replace/delete) or edits (exact text replacement); the server enforces exclusivity for schema-simplifying hosts. | |
| idempotency_key | No | Stable key for create, clone, or update retries. It is stored only as a one-way hash. | |
| expected_revision | No | Compatibility alias for revision on update, archive, or save; prefer revision. | |
| validated_source_digest | No | For create: digest from a successful inline check. Matching source is rechecked and recorded as revision 1 evidence. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | No | Saved version, when saving. | |
| workflow | No | Workflow definition summary or full draft. | |
| workflows | No | Definition summaries, when listing. |