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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filePath": "<filePath>"
},
"name": "postmd_upload_attachment"
}
}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. |