Upload a file to a Docmost page
upload_attachmentUploads a local image or file up to 50 MB to a Docmost page, returning its URL and Markdown image or link to insert into page content.
Instructions
Uploads a local image or file of up to 50 MB to a page and returns its URL and a Markdown image or link to place in the page with replace_page_text or update_page.
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": {
"pageId": "<pageId>",
"filePath": "<filePath>"
},
"name": "upload_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | Page id, slug id, or the full page URL copied from the browser. | |
| altText | No | Alt text for an image, or link text for another file; defaults to the file name. | |
| filePath | Yes | Path to the file on the machine running this server; ~ means the home directory. |