Import files as Docmost pages
import_pagesImports Markdown, HTML, ZIP files, or folders into Docmost, creating linked pages with nested folders and uploaded images at a space root or under a parent page.
Instructions
Creates pages from a .md or .html file, a .zip, or a folder of them on the machine running this server through Docmost's importer, which nests pages by folder, links pages and uploads images, at the space root or under parentPageId.
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": {
"path": "<path>"
},
"name": "import_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to a .md, .html or .zip file or a folder on the machine running this server; ~ means the home directory. | |
| spaceId | No | Space id from get_workspace; may be omitted when parentPageId is given. | |
| parentPageId | No | Put the imported pages under this page. |