postmd_upload_attachment
Upload an image or PDF to obtain a direct URL for embedding in Markdown documents. The returned link can be used as an image or attachment target before publishing.
Instructions
Upload an image or PDF to reference from a document. Requires an API key with documents:write. Allowed types: png, jpg, jpeg, gif, webp, svg, bmp, pdf. Use the returned data.url as the image/link target in your Markdown, then publish the Markdown with postmd_create_document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | No | Upload filename. Defaults to the basename of filePath. | |
| filePath | Yes | Path to the file on the MCP server host. Prefer an absolute path. |