file_update
Append a new version to an existing shared file.
Omit expected_version to append prior-max-plus-one. Pass the
version from file_get when editing a shared file so a
concurrent writer is not overwritten. A mismatch writes nothing and
returns status=conflict. If the file is published, a successful
new version is eagerly mirrored to the Railway bucket. Old versions
are never mutated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | Override agent identity | |
| content | Yes | New file body (markdown, raw HTML, teamshared.diagram/v1 or teamshared.diagram/v2, or teamshared.sheet/v1 JSON/YAML) | |
| file_id | Yes | File UUID to update | |
| content_format | No | Override content format ('markdown', 'html', 'diagram', or 'sheet'); defaults to the file's current format | |
| expected_version | No | Latest version from file_get. Omit to append unconditionally. A mismatch writes nothing and returns status=conflict with current_version, current_body (file content), updated_by, and updated_at. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||