get_supported_formats answers “can it edit this, and what can it save it as?”. Without a file it returns the catalog per format family; with a file, that file’s family and save targets. Example prompt: “What can I save travel-policy.pdf as?”
Tool description (as the AI agent sees it):
Lists the formats GroupDocs.Editor can open for editing and save to. Without a file it returns the whole catalog per format family; with a file it returns that file’s family and the formats it can be saved to. Call this when the user asks which formats are supported, or before save_from_html / replace_text with an unusual target. Families: WordProcessing, Spreadsheet, Presentation, FixedLayout (PDF), Textual (TXT, HTML, XML, Markdown, JSON), Email, Ebook. Returns JSON: without a file { families: [ { family, loadFormats[], saveFormats[] } ] }; with a file { fileName, family, saveFormats[] }. Extensions are lower-case without a dot. On failure isError is set and the text starts with ‘Supported-formats lookup failed for’; a file that cannot be found returns the list of available files instead.
Parameters
Name
Type
Required
Description
file
object
no
Optional: a document to list save targets for — FileInput shape
Without file, the response lists families[], each with loadFormats and saveFormats — WordProcessing, Spreadsheet, Presentation, FixedLayout (PDF), Textual, and the e-book and email families. The full matrix: Supported formats.
Example prompts
“Which formats can you edit?”
“Can this PDF be saved as Word?”
“What can I turn this presentation into?”
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.