devtune_get_action_draft
Get an action's content draft, for accounts with content drafts. draftKind is the draft the action takes now: page (the Page Drafter writes a whole new page for a create action) or section_edits (the Section Editor writes a change list for a refresh action), with agentKey naming the agent; both are null for an action that takes no draft. briefState says whether its brief is ready (outdated: written before the current brief format, so it must be regenerated to draft), and targetPage, for section edits, is the page edited (the action's own target, else its ready brief's page on an owned domain), whether it is locked, and briefRecommendedUrl when the brief recommends a different page. models lists the models a run can use with each one's per-run credit estimate. run is the draft run in flight, or the last one that ended without a draft. versions lists the current draft and up to 10 earlier versions, newest first: each has its draftKind, title, contentMarkdown (the page, or the change list rendered as markdown), changeList for section edits (each change's heading, current text, proposed text and reason), status (current for the draft the action shows, superseded otherwise), timestamps, briefId and runId, and factCheck: its status (checked, partial or unavailable), the sentences still flagged, each with its reason (unsupported or contradicted by the customer's own site, not_in_brief: a product fact the brief's facts list does not state, with siteJudgment saying whether the site states it, contradicted_by_source: a claim about another product that an external fact on the brief's facts list contradicts, with that fact as the brief words it and the source it cites, or competitor_link: the sentence links to one of the project's configured competitors, with the link in linkUrl) and the pages it was judged against and any contradicting quote, how many were flagged before and after the agent's fix pass, and coverage: how many sentences the check reviewed as possible claims (questions and short fragments are not counted), and of those how many were settled (restated from the brief's facts list, judged against the site, or contradicted by a source on the brief's facts list), unsettled, not checked, third-party claims (about another product, company, standard or source) read but not verified (notVerified), set aside as guidance, examples, headings or opinion, or marked [Needs source], with hasGap true when any were not judged and settled. current is the current version. Drafts are never published by DevTune.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actionId | Yes | UUID of the action. |