What problem does it solve? Publishing long-form content to X Articles has no public draft API, so getting a finished Markdown article and cover image into the X Articles backend requires fragile manual browser work that often produces duplicate drafts, broken formatting, double-numbered lists, or accidental publishing. ## Core Features & Use Cases - Checked Delivery Package: Converts a local Markdown article into editor-ready HTML and plain text, validating title length, chapter headings, bold anchors, blank-line runs, 5:2 cover ratio, and translation attribution before any browser action. - Browser-Driven Draft Writing: Uses the host's browser or computer-control capability to create or update a draft in the logged-in X Articles editor, upload the cover through the file input element, paste rich text, and insert images at computed block positions. - Verification and Recovery: Compares Draft.js block counts, h1/h2 counts, bold counts, and start/end anchors against the delivery package, records the draft URL and content fingerprint back into the article frontmatter, and supports draft-needs-cover recovery without creating duplicates. - Use Case: After finishing a Chinese long-form article and generating its 5:2 cover, ask the agent to save it as an X Articles draft; it deduplicates against existing drafts, writes and verifies the content, and stops before Publish. ## Quick Start Use ray-x-article to save my finished article and its 5:2 cover as a verified X Articles draft without publishing it.