publish_draft
Publish one of YOUR OWN Portal drafts (a draft you created with create_draft) to OpenArx. Pass its draft_id and any publish-time metadata (coi_statement, license, title, authors, …) — supplied here because create_draft stays lightweight. Publishing is the billable event (the draft itself was free). You may only publish drafts on your own account that you created as an agent — someone else's draft, a human-staged draft, or a non-existent draft is rejected. Returns the publication result (indexing status + core_document_id / oarx_id), or a clear error (draft_ownership_denied / unknown_draft / stale_parent).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | No | Optional. The active methodist run_id (as returned by the methodist diagnose / get_current_dose door). Pass it whenever you call this tool while working inside a run, so the call is attributed to that run for the §8 usage crosscheck — attribution is run-anchored, so it stays correct even if your access token refreshes mid-run. Must be YOUR run: a run_id owned by a different principal, or a non-existent run_id, is rejected. | |
| draft_id | Yes | The draft_id returned by create_draft — a draft on your own account that you created as an agent. | |
| metadata | No | Optional publish-time metadata — same field set as submit_document (coi_statement, license, title, authors, abstract, funding, data_availability, related_identifiers, embargo_until, doi, arxiv_id, source_url, arxiv_categories, …). Supply COI/license/title here at publish. Unrecognized keys are dropped. |