Publish and revise
Release an approved revision and keep later edits private until they are ready.
On this page
Publish an unpublished draft
Give the client drafts:read to review the saved copy and guides:publish to publish. Read the full Markdown, ID and revision with read_draft or inspect the draft in Studio. After reviewing that specific version, give the agent explicit approval.
Publish the exact draft revision I just reviewed. Open the public guide, compare its Markdown with the saved draft, and give me the link.
The client passes id and expectedRevision to publish_draft. The response includes the live revision, publishedAt and canonical url. With guides:read it can verify the published bodyMarkdown using read_guide. Publishing requires a title and nonblank body.
Update a published guide
- Use
read_guide_revisionwith the published guide’s ID. Before the first private edit, this returns the current publication. CheckhasPendingChanges,revisionandbaseRevision. - Pass that
revisionasexpectedRevisiontosave_guide_revisionwith the fields to change. The save is private. Open itseditUrlin Studio, or uselist_guide_revisionslater to find pending work. - Read the saved private version and obtain the author’s approval. Call
publish_guide_revisionwith its ID and exact revision. This requires bothrevisions:readandguides:publish. Readers now see the new version at the returned URL. The original publication date is preserved.
After a conflict, read and review the latest content before trying to publish again. If a successful publication response is lost, replay the same ID and revision. While that publication is still live the server returns its original receipt.
Publication limits
An author can make ten successful publications per rolling hour across all connected clients and Studio combined. This includes first publications and releases of private edits. Replays of a live publication receipt do not use another slot.
At the limit the tool returns rate_limited with retryAfterSeconds. Keep editing privately while you wait. DevGuides publishes immediately when the approved call succeeds. Scheduling future publication is currently unavailable.