edit
Create a revised artifact version from the latest completed base using an exact change request; flag stale bases and accept replacement source, style, or format.
Instructions
Build a new version from base_version (the latest done version) using the user's exact change request. Returns a conflict if base_version is stale. Inspect, then edit from the latest.
source_content and source_files (optional, 200 KB total) replace the base version's source.
If omitted, the base version's source is reused.
style (optional) is house, bold, editorial, playful, terminal, or swiss. Omit it to keep the
style the artifact was last built with. It applies to HTML only; other formats accept it and
ignore it.
format (optional) is html, markdown, pdf, docx, or xlsx. Omit it to keep the artifact's current
format. A different format builds this version in that format. When the version is done, the
artifact's format updates. The artifact id and slug stay the same. Older versions keep the format
they were built with.
display_name (optional) is the card title. When this version finishes, that name replaces the
artifact's display_name. Omit it and a changed page title (the HTML title, or the first Markdown
heading) becomes the card title instead. The slug stays the same.
Ends as needs_input with a missing message if the change needs facts that were not supplied.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| style | No | ||
| format | No | ||
| workspace | No | ||
| artifact_id | Yes | ||
| base_version | Yes | ||
| display_name | No | ||
| source_files | No | ||
| source_content | No | ||
| idempotency_key | No | ||
| verbatim_request | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||