File Conversion
file-convertConvert documents, web pages, spreadsheets and images between formats. Returns a download URL of the converted file with its name, size and formats. Use to change a file's format, for example Word to PDF or PDF to Markdown. To extract specific fields use documents; to read a web page's text use scrape. Converts pdf to txt, md, html, png, jpg; docx to pdf, txt, md, html; pptx to txt, md; xlsx to csv, json, md, html, txt; csv to xlsx, json, md, html; html to pdf, txt, md; web to pdf, txt, md, html; txt to pdf, html; epub to pdf, txt, md; svg to pdf, png; png to jpg, webp, gif, bmp, tiff, pdf; jpg to png, webp, gif, bmp, tiff, pdf; webp to png, jpg, gif, bmp, tiff, pdf; gif to png, jpg, webp, bmp, tiff, pdf; bmp to png, jpg, webp, gif, tiff, pdf; tiff to png, jpg, webp, gif, bmp, pdf; heic to png, jpg, webp, pdf. Cost: 2 credits, charged only when a call succeeds.
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": {
"file_url": "<file_url>",
"source_format": "<source_format>"
},
"name": "file-convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_url | Yes | URL of the file to convert (for source_format web, the page itself). | |
| source_format | Yes | Format of the file: pdf, docx, pptx, xlsx, csv, html, web (a page, from its HTML without JavaScript), txt, epub, svg, png, jpg, webp, gif, bmp, tiff or heic. | |
| target_format | No | Format to convert to: one the source format converts to (the tool's description lists each source's targets). Any other pair is refused with the formats its source converts to. |