Revise an agent draft with the agent builder
PreviewRevise an agent draft from a conversation with the agent builder. Returns the draft only; nothing is created.
/v1/agents/draftSee authentication for credentials and permissions.
Responses
200Success
Success
object
The agent the builder is shaping. Nothing is created from it until the user confirms.
object
Capability ids to attach.
Channel kinds to create as drafts: public_chat, ag_ui, webhook, slack.
GitHub events that start the agent.
object
CI events only: branches to accept, e.g. main; empty means every branch.
Run only when a CI outcome differs from the previous one for the same repository and branch.
Events from the builder’s fixed list, e.g. workflow_run.completed.
Message the agent receives for each event.
owner/name repositories; empty means every repository the App sees.
CI events only: workflow (or check suite app) names to accept, e.g. CI;
empty means every workflow.
Org catalog MCP servers to attach.
A catalog MCP server to attach.
object
Whose grant the attachment uses, set from the preset’s auth.
Catalog preset name.
Model to pin, set only when the org default has no working key.
Addressable name (lowercase slug).
The builder’s answer to the last message.
Short follow-ups the user can send next.
Example
{ "draft": { "mcp_servers": [ { "acts_as": "service" } ] }}