export_article
Convert Markdown drafts to HTML pages for pasting into Medium's editor. Preserves headings, links, lists, images and code blocks without requiring an API token.
Instructions
Write the article as an HTML page to copy-paste into Medium's editor (no token needed).
Runs prepare_article first, then converts to HTML. The user opens the file in a browser, selects all, copies, and pastes into medium.com/new-story; Medium keeps headings, bold, links, lists, quotes, images and code blocks. Tell the user the output path and pass on the warnings.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "export_article"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Up to 5 tags (entered in Medium's publish dialog). | |
| title | No | Story title. Defaults to the first '# ' heading. | |
| markdown | No | Article Markdown, if there is no file. | |
| subtitle | No | One-line subtitle shown under the title. | |
| file_path | No | Path to the article's .md file. Use this or `markdown`. | |
| output_path | No | Where to write the .html. Defaults to <file>.medium.html next to the input, or ./medium-export.html. | |
| canonical_url | No | Original URL if cross-posting. |