get_supported_formats

View as MarkdownMarkdown

Set up your AI agent

Give your coding agent live access to the GroupDocs documentation and API reference through the GroupDocs Docs MCP server — no install, no API key. Learn more

claude mcp add --transport http groupdocs-docs https://docs.groupdocs.com/mcp

Also process documents locally

The GroupDocs.Assembly MCP server lets your agent work with files on your machine; they are never uploaded. It needs the .NET 10 SDK or Docker.

claude mcp add groupdocs-assembly -- dnx GroupDocs.Assembly.Mcp --yes
Folders, licensing and more →

get_supported_formats answers can it do that?: the template formats per family (Word processing, Spreadsheet, Presentation, Email), what each can be saved as, and the data formats read. With a file, only that template’s save targets. Example prompt: “Can an Excel template be saved as PDF?”

Tool description (as the AI agent sees it):

Lists the template formats GroupDocs.Assembly fills, the formats each kind of template can be saved as, and the data formats it reads. Call it when the user asks which formats are supported, or whether a template can be saved as PDF, DOCX, HTML or another format. Returns JSON. Without ‘file’, the full catalog: { families: [{ family, templateFormats[], saveFormats[] }], dataFormats: [{ kind, extensions[], note }] }; with ‘file’, the save targets of that template: { fileName, family, saveFormats[] }. Extensions are lower-case without a dot; families are WordProcessing (including TXT, Markdown and HTML templates), Spreadsheet, Presentation and Email. Do NOT pre-check whether files exist — just pass the filename the user provided; a file that cannot be found returns the list of available files instead. On failure isError is set and the text starts with ‘Supported-formats lookup failed for’.

Parameters

NameTypeRequiredDescription
fileobjectnoOptional template: return only the formats this template can be saved as — FileInput shape

Example call

{
  "name": "get_supported_formats",
  "arguments": {}
}

Result

JSON — captured from server 26.11.0 (lists trimmed):

{
  "families": [
    { "family": "WordProcessing",
      "templateFormats": [ "docx", "doc", "rtf", "odt", "txt", "md",
                           "html", ... ],
      "saveFormats": [ "docx", "pdf", "html", "md", "epub", "xps", ... ] },
    { "family": "Spreadsheet",
      "templateFormats": [ "xlsx", "xls", "xlsm", "ods", ... ],
      "saveFormats": [ "xlsx", "pdf", "html", "xps", ... ] },
    { "family": "Presentation", ... },
    { "family": "Email",
      "templateFormats": [ "msg", "eml", "emlx" ], ... }
  ],
  "dataFormats": [
    { "kind": "json", "extensions": [ "json" ], "note": "An object's keys
      are the names the template uses; an array is named after the
      template's data source. Also accepted inline as 'dataJson'." },
    { "kind": "xml", ... },
    { "kind": "csv", "extensions": [ "csv", "tsv" ], ... },
    { "kind": "table", "extensions": [ "xlsx", "xls", "docx", "pptx",
      ... ], "note": "A table (a worksheet for spreadsheets) of the
      document, chosen with 'dataTable'." }
  ]
}

The full lists: Supported formats.

Example prompts

  • “Can an Excel template be saved as PDF?”
  • “Which data formats can I generate documents from?”
  • “What can I save contract-template.docx as?”