Drafts
workbench__set_artifact
Puts a whole agent, tool or plan file in the network draft as the draft of the sketch node it names.
Behavior
- Checks the draft right away and returns any problems. Nodes of the sketch that aren't drafted yet count as existing. Nothing is written to disk.
- Once there's a sketch, a file whose name isn't a node of it is refused.
- For a plan, omit
yamlto use the planplan__compose_planlast returned. With no network in progress, a plan goes to the plan pane, and replacing one with unsaved changes fails unlessoverwrite_draftis true.
| Available to | Effect |
|---|---|
| Workbench agents only | Read-only |
Input
What the file is
Available options: plan, agent, tool
overwrite_draftboolean
Plan pane only: discard unsaved changes to the current plan draft, only after the user confirms
yamlstring
The whole file. Required for an agent or tool; omit it for a plan to use what plan__compose_plan returned
Output
kindstring
namestring
problemsany[]
{
"kind": "tool",
"name": "changelog_section",
"problems": []
}