convert_onedrive_file
Convert a OneDrive file to PDF or JPG
Description
Turn a file already in the user’s OneDrive into a PDF or a JPG — Microsoft does the conversion on its own servers, so nothing is re-encoded here and nothing is lost in a screenshot. It reads about 130 source formats, which is the point: PowerPoint and Word decks, Excel, Photoshop PSD, Illustrator AI, Sketch, 3D (fbx/glb/obj), video (mp4/mov/webm), HEIC from an iPhone, and the raw camera formats (CR2, NEF, ARW, DNG) that nothing else in this product can open. Use it to turn a client’s deck into images you can actually put in an ad, to get a usable JPG out of a designer’s PSD or a photographer’s raw file, or to hand someone a PDF of a spreadsheet. CONVERTING TO JPG REQUIRES BOTH width AND height — Microsoft refuses the call without them. The result is stored at a durable Hermoso URL you can pass straight to a render or a post; Microsoft’s own conversion link expires within minutes, so do not hand that one to anyone. Needs OneDrive connected — no new permission.
Parameters
| Parameter | Type | Description |
|---|---|---|
fileIdrequired | string | the OneDrive item id, from list_onedrive_files |
format | "pdf" | "jpg" | default pdf |
width | number | REQUIRED for jpg — output width in pixels |
height | number | REQUIRED for jpg — output height in pixels |
Example call
Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and POST https://app.hermoso.ai/v1/tools/convert_onedrive_file.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"convert_onedrive_file","arguments":{"fileId":"<string>"}}}
CLI
hermoso call convert_onedrive_file --json '{"fileId":"<string>"}'
Credits
Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See Credits & costs.
Related tools
onedrive_file_permissionsWho can open a OneDrive filecreate_onedrive_folderCreate a OneDrive foldershare_onedrive_fileShare a OneDrive file as a linkdelete_onedrive_fileDelete a OneDrive fileupdate_onedrive_fileRename / move a OneDrive fileget_onedrive_fileGet a OneDrive file’s detailslist_onedrive_filesList OneDrive filessave_to_onedriveSave file(s) to OneDrive