Skip to documentation
Developer docs

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

  1. Use read_guide_revision with the published guide’s ID. Before the first private edit, this returns the current publication. Check hasPendingChanges, revision and baseRevision.
  2. Pass that revision as expectedRevision to save_guide_revision with the fields to change. The save is private. Open its editUrl in Studio, or use list_guide_revisions later to find pending work.
  3. Read the saved private version and obtain the author’s approval. Call publish_guide_revision with its ID and exact revision. This requires both revisions:read and guides: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.