Save a workflow version
save_workflowKeep one of this account's own workflows: the user's skill for a recurring piece of work, as ordered steps (this service's tools), when phrases, principles, preferences and outputs. Ask the user first; nothing is saved without this call. Every save is a NEW VERSION (earlier ones are kept) and starts as a draft; publish_workflow makes it active. Roles and slots only: personal data is refused with the field and the fix. Private to the account. Same id as a shipped playbook = your version replaces it for you.
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": {
"workflow_id": "<workflow_id>",
"title": "<title>",
"one_line": "<one_line>"
},
"name": "save_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Optional prose in Markdown: what the steps cannot say, for an agent to follow rather than for a human to admire. Required (80+ characters) only for a prose-only playbook sent without `steps`. | |
| when | No | 2-12 task phrases, in the words the user uses when asking for this work (Lithuanian matches best); find_workflow and the hint match against them. | |
| state | No | `draft` (the default: read it, do not follow it as finished) or `active` (finished: served and hinted). Retire with publish_workflow(state='retired'). | |
| steps | No | The ordered calls: a list of {n, tool, args, purpose, stop_if}; `tool` is one of this service's tool names, each arg a literal or a slot {"slot": "article", "from": "task"}. Roles and slots only - never a person's or a client's data. workflow_guide() shows the shape. | |
| title | Yes | What this playbook is called, in the lawyer's words - it is what a client shows in a menu. | |
| parent | No | The workflow this refines (your earlier one or a shipped id); requires `change_note`. | |
| outputs | No | What the finished product looks like, in one or two sentences (the memo's sections, the checklist's lines). | |
| one_line | Yes | One sentence saying what the playbook produces, shown beside the title in listings. | |
| principles | No | Up to 20 of the user's working rules that change how the work is done (e.g. `cite the edition in force on the event date`). Rules, never client facts. | |
| change_note | No | With `parent`: what changed from it and why, in a sentence or two. | |
| preferences | No | Up to 20 name -> text preferences: output language, format, depth, tone (e.g. {"language": "lt", "format": "memo"}). | |
| workflow_id | Yes | The id to save under. Reusing a shipped id (`still-good-law`) replaces that playbook FOR THIS ACCOUNT with yours; a new id adds one. Saving an id again is a NEW VERSION; earlier versions are kept. |