Convert Publisher (.pub) files
convert_publisher_filesConvert Microsoft Publisher (.pub) files to PDF, page images (PNG and JPG), ODG (editable in LibreOffice Draw) and text-only DOCX. Use it when the user has .pub files, or a .zip of them, that they want to open, view, print or convert. Pass public download links in file_urls, or files the user attached in files; a .zip is unpacked and the .pub files in it are converted. The files are downloaded to and converted on Aretus's servers (aretus.app), an independent service that is not affiliated with Microsoft; results are usually close to Publisher's layout but not identical. The result lists each file's page count, warnings and watermarked preview images, the one-time price for downloading everything, and pay_url, where the user pays. One file can be downloaded free with get_free_file. Files are deleted 24 hours after upload. Waits up to about 25 seconds for the conversion; if it is still running, check again with get_conversion.
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": "convert_publisher_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Files the user attached in the chat (.pub or .zip), as provided by the host. | |
| file_urls | No | Public http(s) links to .pub or .zip files (1 to 20 in total with files). |