Save a personal flow
save_flowCreate or update a personal Markdown flow; use user or repo scope and revision checks to avoid overwriting edits.
Instructions
Create or update a personal flow when the user asks to save or change one.
Stored as Markdown in the installation's git-ignored flows/.user, never in a
repository's working tree. scope: user (all repositories, default) or repo
(only the caller's repository). content: the complete Markdown flow, starting
with a "# Title", with steps and completion criteria; not a chat transcript.
expected_revision: omit to create; to update, pass the revision from get_flow
(a mismatch returns flow_conflict: reload and reapply instead of overwriting).
Built-in flows are read-only: to change one for this user, save the same ID
with override=true. Previous text stays in history.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow | Yes | ||
| scope | No | user | |
| content | Yes | ||
| override | No | ||
| workspace | No | Absolute path of your working directory, the project this session works in. Pass it whenever you have one: one server can serve several sessions. | |
| expected_revision | No | Optional revision the caller last read; the save is refused if it changed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |