Volver al catálogo

Carbone MCP

carbone_mcp

Generate PDF, DOCX, XLSX and other documents from templates and JSON data, convert files and manage stored templates through Carbone's hosted MCP server.

Acciones
14
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

Acciones disponibles (14)

Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.

Convert documentCARBONE_MCP_CONVERT_DOCUMENTAcción

Convert a file to another format, e.g. DOCX, XLSX, PPTX, HTML or Markdown to PDF, or any document to PNG. No data is merged: Carbone tags such as {d.name} stay as written (use render_document to fill them). Example: { "file": "https://example.com/report.docx", "convertTo": "pdf" }. To check a layout, convert to png: the image is returned inline (for HTML or SVG, converter "C" with formatOptions { "Scale": 2 }). Returns text and images (png, jpg, gif, webp) inline; other formats as a one-time download link: give it to the user as is, never open it yourself (the first download consumes it).

Parámetros de entrada

  • filestring

    The file to convert. An HTTPS URL or the file as base64 (local paths are refused over HTTP). Formats: DOCX, XLSX, PPTX, ODT, ODS, ODP, ODG, HTML, XHTML, XML, SVG, IDML, MD, TXT, CSV, RTF, PDF; not the legacy binary DOC, XLS or PPT (re-save them as DOCX, XLSX, PPTX).

  • failOnstring[]

    ["IMAGE_URL_ERROR"] with converter "C": fail when an image of the HTML or SVG cannot be downloaded.

  • convertToanyObligatorio

    Output format, e.g. "pdf". Valid outputs depend on the input format (HTML converts to pdf or png, not xlsx; doc, xls and ppt are output only). With options: { "formatName": "pdf", "formatOptions": { ... } }.

  • converterstringenum

    Converter, used whenever the format changes. "L" LibreOffice (default): every format, and the only one with PDF/A, page ranges and accessibility. "I" Carbone ICE: DOCX and ODT to PDF, the fastest (keep "L" for WEBP or EMF/WMF images, SmartArt, complex charts, comments, form fields, equations, bookmarks, endnotes, and ODT tracked changes or footnotes). "O" OnlyOffice: DOCX, XLSX, PPTX to PDF. "C" Chromium: HTML and SVG to PDF, PNG, JPG, WEBP. Details: get_capabilities.

    LOCI
  • reportNamestring

    File name without extension, taken literally (no tags), e.g. "contract".

  • returnLinkboolean

    If false, return the file itself (as asAttachment). True by default for formats not returned inline. Exclusive with asAttachment.

  • hardRefreshboolean

    If true, run the converter even for the same format, and recompute pagination. Set automatically for PDF to PDF with formatOptions (password, watermark, PDF/A), which otherwise come back unchanged.

  • asAttachmentboolean

    If true, return the file itself as a base64 attachment, for any format, instead of the default (link or inline). Not every client can open it.

  • attachedFileobject

    A file the user attached to the conversation, filled in by ChatGPT. Other clients leave it empty and pass file instead. Mutually exclusive with file.

  • egressAuthorizationstring

    Authorization header value Carbone sends when it fetches images or styles of the file, e.g. "Bearer abc".

Parámetros de salida

Sin parámetros.

Delete templateCARBONE_MCP_DELETE_TEMPLATEAcción

Delete a stored template now: a Template ID removes every version, a Version ID only that one. Confirm with the user first: it cannot be undone. To schedule a deletion instead, use update_template_metadata with expireAt.

Parámetros de entrada

  • templateIdstringObligatorio

    Template ID (every version) or Version ID (that version only), from list_templates.

Parámetros de salida

Sin parámetros.

Download templateCARBONE_MCP_DOWNLOAD_TEMPLATEAcción

Download a stored template's original file (DOCX, XLSX, HTML...), or with sample: true the sample dataset stored with it. Text and images come back inline; other files as a base64 attachment, which not every client can open.

Parámetros de entrada

  • sampleboolean

    If true, return the sample dataset stored at upload, as JSON, instead of the file; an error if there is none.

  • templateIdstringObligatorio

    Template ID (its deployed version) or Version ID, from list_templates.

  • asAttachmentboolean

    If true, return a text or image file as a base64 attachment too.

Parámetros de salida

Sin parámetros.

Find template examplesCARBONE_MCP_FIND_TEMPLATE_EXAMPLESAcción

Find a ready-to-run Carbone example: when the user wants to try Carbone, needs a starting template, or asks how to build a kind of document (invoice, label, report, contract, e-invoice...) or use a feature (loop, chart, barcode...). Each example is a real template (DOCX, XLSX, PPTX, ODT, HTML, SVG, CSV, XML, IDML...) with its JSON data, the document it produces, and a page explaining its tags. Each comes with renderArguments: pass them, unchanged, to render_document to fill it with its data (converting it is optional). inspect_template on its template URL lists the data it expects; upload_template keeps it in the account to adapt. No argument: the newest examples and the use cases.

Parámetros de entrada

  • idstring

    One example, by its id.

  • kindstringenum

    "gallery": complete business documents. "format-guide": one feature of one format, for beginners.

    galleryformat-guide
  • levelstringenum
    beginnerintermediateadvanced
  • limitinteger

    1 to 25 results (default 8).

  • querystring

    Keywords, e.g. "invoice barcode", "excel chart", "shipping label", "pdf form".

  • useCasestring

    A use case: finance, logistics, reports, compliance, tickets, planning, presentations, publishing.

  • resultFormatstring

    Generated format, e.g. "pdf", "xlsx", "csv".

  • templateFormatstring

    Template format, e.g. "docx", "xlsx", "html".

Parámetros de salida

  • totalintegerObligatorio

    How many examples match (more than listed when above the limit).

  • examplesobject[]Obligatorio
Get api statusCARBONE_MCP_GET_API_STATUSAcción

Check Carbone API health and version. Returns the current API version and a status message. Useful for verifying connectivity and confirming which Carbone version is active.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • messagestringObligatorio

    Status message returned by the API.

  • versionstringObligatorio

    The running Carbone API version.

Get capabilitiesCARBONE_MCP_GET_CAPABILITIESAcción

Returns a summary of all Carbone capabilities: supported formats, features, tool usage examples, and links to full documentation. Call this first if you are unsure what Carbone can do.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

Sin parámetros.

Get render resultCARBONE_MCP_GET_RENDER_RESULTAcción

Get the result of a render_document call made with async: true: the one-time download link (give it to the user, never open it), the error, or "still rendering" (call again about 5 seconds later; no result after 10 minutes is reported as failed). Results are kept 1 hour, for the caller who started the render.

Parámetros de entrada

  • jobIdstringObligatorio

    The job ID render_document returned.

Parámetros de salida

Sin parámetros.

Inspect templateCARBONE_MCP_INSPECT_TEMPLATEAcción

List the Carbone tags a template uses and return a sample JSON dataset matching its structure. Call it before render_document when you do not know which data a template expects. Pass templateId (a stored template) or template (HTTPS URL or base64). It counts as one render on the account; {t()} tags are not listed.

Parámetros de entrada

  • templatestring

    A template to inspect, not stored. An HTTPS URL or the file as base64 (local paths are refused over HTTP). Formats: DOCX, XLSX, PPTX, ODT, ODS, ODP, ODG, HTML, XHTML, XML, SVG, IDML, MD, TXT, CSV, RTF, PDF; not the legacy binary DOC, XLS or PPT (re-save them as DOCX, XLSX, PPTX). Exclusive with templateId.

  • templateIdstring

    Template ID (its deployed version) or Version ID, from list_templates. Exclusive with template.

  • attachedTemplateobject

    A file the user attached to the conversation, filled in by ChatGPT. Other clients leave it empty and pass template instead. Mutually exclusive with template and templateId.

Parámetros de salida

  • tagsstring[]Obligatorio

    The Carbone tags of the template, as written, e.g. "{d.customer.name}", "{d.items[i].label}", "{c.company}". {t()} translation tags are not listed.

  • errorobject

    Error reported by Carbone while inspecting; only present when there is one.

  • sampleobjectObligatorio

    A sample dataset matching the template structure, with placeholder values: { "data": {...}, "complement": {...} }. Pass sample.data as render_document data, and sample.complement as complement.

  • signaturesarray

    Signature fields found in the template; only present when there are any.

List categoriesCARBONE_MCP_LIST_CATEGORIESAcción

List the template categories in use, for the category filter of list_templates or upload_template.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • categoriesstring[]Obligatorio

    Template category names in use.

List tagsCARBONE_MCP_LIST_TAGSAcción

List the tags in use across templates. To find the templates with a tag, call list_templates and keep the results whose tags include it.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • tagsstring[]Obligatorio

    Template tag names in use.

List templatesCARBONE_MCP_LIST_TEMPLATESAcción

List stored templates, with filters and pagination. Each result has an id (Template ID; null for a template uploaded with versioning: false) and a versionId: pass either as templateId to render_document, download_template or delete_template. Each result lists its tags: to find templates by tag, keep the results whose tags include it.

Parámetros de entrada

  • idstring

    Filter by Template ID. Cannot be a Version ID.

  • limitinteger

    1 to 100 results (default 100); use cursor for more.

  • cursorstring

    The nextCursor of the previous response.

  • origininteger

    Upload origin: 0 API (this server), 1 Carbone Studio, 2 Salesforce, 3 Odoo, 4 HubSpot.

  • searchstring

    Fuzzy search in template names, or exact match on Template ID / Version ID.

  • categorystring

    Filter by category (e.g. "invoices", "legal").

  • versionIdstring

    Filter by Version ID (SHA-256 format).

  • includeVersionsboolean

    If true, returns all versions for each template. Default: false (only deployed version).

Parámetros de salida

  • hasMorebooleanObligatorio

    Whether more results are available via the cursor.

  • templatesobject[]Obligatorio

    The matching templates (all fields).

  • nextCursorstring

    Cursor to pass to the next list_templates call.

Render documentCARBONE_MCP_RENDER_DOCUMENTAcción

Generate a document (PDF, DOCX, XLSX, PPTX, ...) by merging JSON data into a Carbone template. Pass templateId for a stored template, or template (HTTPS URL or base64) for a one-off render. To change the format of a file without data, use convert_document; unsure which data a template expects, call inspect_template first. Returns text and images (png, jpg, gif, webp) inline; other formats as a one-time download link: give it to the user as is, never open it yourself (the first download consumes it). Batches and renders over a minute: pass async: true, then call get_render_result with the job ID.

Parámetros de entrada

  • dataany

    JSON for the {d.…} tags: an object, a top-level array, or a reference to a JSON file (HTTPS URL or base64). Omitted: every tag renders empty; to keep tags as written, use keepTags. Tag syntax: the Carbone Skill.

  • enumany

    Labels for :convEnum(TYPE), e.g. { "STATUS": { "1": "Active" } }, or a reference to a JSON file.

  • langstring

    Locale for {t()} translations, :formatN and :formatC, e.g. "fr-fr", "en-us".

  • asyncboolean

    If true, render in the background (up to 10 minutes) and return a job ID at once; then call get_render_result with it. For batches and long renders. Exclusive with webhookUrl.

  • failOnstring[]

    ["IMAGE_URL_ERROR"]: fail when an image URL cannot be downloaded, instead of showing a placeholder.

  • keepTagsboolean

    If true, skip templating: tags stay as written, to proof a template's layout. Exclusive with data.

  • templatestring

    A one-off template, not stored. An HTTPS URL or the file as base64 (local paths are refused over HTTP). Formats: DOCX, XLSX, PPTX, ODT, ODS, ODP, ODG, HTML, XHTML, XML, SVG, IDML, MD, TXT, CSV, RTF, PDF; not the legacy binary DOC, XLS or PPT (re-save them as DOCX, XLSX, PPTX). To reuse one, upload_template (requestUploadUrl for a large file) then pass templateId. Exclusive with templateId.

  • timezonestring

    IANA time zone for :formatD dates, e.g. "America/New_York". Default "Europe/Paris".

  • convertToany

    Output format, e.g. "pdf". Omitted: the template's own format. Valid outputs depend on the input format (HTML converts to pdf or png, not xlsx; doc, xls and ppt are output only). With options: { "formatName": "pdf", "formatOptions": { ... } }.

  • converterstringenum

    Converter, used whenever the format changes. "L" LibreOffice (default): every format, and the only one with PDF/A, page ranges and accessibility. "I" Carbone ICE: DOCX and ODT to PDF, the fastest (keep "L" for WEBP or EMF/WMF images, SmartArt, complex charts, comments, form fields, equations, bookmarks, endnotes, and ODT tracked changes or footnotes). "O" OnlyOffice: DOCX, XLSX, PPTX to PDF. "C" Chromium: HTML and SVG to PDF, PNG, JPG, WEBP. Details: get_capabilities.

    LOCI
  • complementany

    Extra data for {c.…} tags (company details, constants), or a reference to a JSON file.

  • reportNamestring

    File name without extension; may use tags, e.g. "invoice-{d.id}" (taken literally with keepTags).

  • returnLinkboolean

    If false, return the file itself (as asAttachment). True by default for formats not returned inline. Exclusive with asAttachment.

  • templateIdstring

    A stored template, from list_templates or upload_template (never guess one): its Template ID (renders the deployed version) or a Version ID (64 hex characters, pins that version). Exclusive with template.

  • webhookUrlstringuri

    Only an endpoint the user owns and gives you: Carbone POSTs { "success": true, "data": { "renderId" } } to it when the document is ready, and that server downloads it once. This call then returns no document. Prefer async: true.

  • batchOutputstringenum

    Batch result: "zip" (default, named after reportName, or batch.zip without one) or "pdf", one concatenated PDF (needs convertTo "pdf").

    zippdf
  • hardRefreshboolean

    If true, recompute pagination and the table of contents after rendering. Needs convertTo.

  • variableStrstring

    Aliases for the whole template, e.g. "{#buyer = d.order.customer}", then {$buyer.name} in it.

  • asAttachmentboolean

    If true, return the file itself as a base64 attachment, for any format, instead of the default (link or inline). Not every client can open it.

  • batchSplitBystring

    One document per item of an array: "d" when data is the array, "d.items" for a child array; at most 100. Needs async: true (or a webhookUrl the user provides).

  • translationsany

    Strings for {t(key)}, selected by lang: { "fr-fr": { "hello": "Bonjour" } }, or a reference to a JSON file.

  • currencyRatesany

    Rates per currency, base 1: { "EUR": 1, "USD": 1.08 }, or a reference to a JSON file.

  • currencySourcestring

    ISO 4217 currency of the amounts in data, for :formatC. Set with currencyTarget and currencyRates.

  • currencyTargetstring

    ISO 4217 currency to convert the amounts to.

  • webhookHeadersobject

    Headers Carbone sends to webhookUrl, e.g. { "authorization": "secret" }.

  • batchReportNamestring

    Name of each file in the batch ZIP, without extension; tags resolve per item, e.g. "invoice-{d.id}".

  • attachedTemplateobject

    A file the user attached to the conversation, filled in by ChatGPT. Other clients leave it empty and pass template instead. Mutually exclusive with template and templateId.

  • egressAuthorizationstring

    Authorization header value Carbone sends when it fetches images, PDFs or the webhook while rendering.

  • preReleaseFeatureIninteger

    Turn on Carbone pre-release features up to this version tag, e.g. 5000000.

Parámetros de salida

Sin parámetros.

Update template metadataCARBONE_MCP_UPDATE_TEMPLATE_METADATAAcción

Change ONE template version: name, comment, category, tags, deployment (deployedAt), scheduled deletion (expireAt), or the Template ID it belongs to (moveToTemplateId). A Template ID patches its deployed version; a Version ID, that exact version. To delete now, use delete_template.

Parámetros de entrada

  • namestring

    New name (max 200 characters).

  • tagsstring[]

    New tags, replacing the current ones: sorted, deduplicated, 100 characters in all.

  • commentstring

    New comment (max 200 characters).

  • categorystring

    New category (max 200 characters).

  • expireAtinteger

    Delete this version at this UTC Unix time (seconds); 0 cancels a scheduled deletion.

  • deployedAtinteger

    42000000000 deploys this version now: renders by Template ID use the most recently deployed version.

  • templateIdstringObligatorio

    The version to change: a Version ID, or a Template ID for its deployed version.

  • moveToTemplateIdstring

    Only when the user asks to move a version: moves it to this other Template ID. Not the template to change (that is templateId).

Parámetros de salida

  • idstring

    Template ID the version now belongs to (returned when moveToTemplateId was used).

  • namestring

    Name, returned if updated.

  • tagsstring[]

    Tags, returned if updated.

  • commentstring

    Comment, returned if updated.

  • categorystring

    Category, returned if updated.

  • expireAtnumber

    Deletion timestamp (0 = never expires), returned if updated.

  • versionIdstringObligatorio

    Version ID of the patched version.

  • deployedAtnumber

    Deployment timestamp, returned if updated.

Upload templateCARBONE_MCP_UPLOAD_TEMPLATEAcción

Store a reusable template, then render it with render_document and its Template ID. Pass exactly one of template, attachedTemplate, requestUploadUrl. Returns id (Template ID) and versionId. A new version of an existing template (id) is used by renders only once deployed (deployedAt).

Parámetros de entrada

  • idstring

    Template ID to add this upload to as a new version; omitted: a new template. Never a Version ID.

  • namestring

    Display name, shown and searched by list_templates (max 200 characters). Defaults to the attached file name.

  • tagsstring[]

    Labels, e.g. ["sales", "billing"]: sorted, deduplicated, 100 characters in all.

  • sampleobject[]

    A sample dataset stored with the template, at most one: [{ "data": { "name": "Acme" } }].

  • commentstring

    Comment on this version (max 200 characters).

  • categorystring

    Category, e.g. "invoices" (max 200 characters).

  • expireAtinteger

    Delete the template at this UTC Unix time (seconds); 0 (default) never. Until then, update_template_metadata with expireAt 0 cancels it. To delete now, use delete_template.

  • templatestring

    The template file. An HTTPS URL or the file as base64 (local paths are refused over HTTP). Formats: DOCX, XLSX, PPTX, ODT, ODS, ODP, ODG, HTML, XHTML, XML, SVG, IDML, MD, TXT, CSV, RTF, PDF; not the legacy binary DOC, XLS or PPT (re-save them as DOCX, XLSX, PPTX).

  • deployedAtinteger

    42000000000 deploys this version now: renders by Template ID use the most recently deployed version. Earlier versions stay stored. update_template_metadata redeploys one.

  • versioningboolean

    Leave true (default). false is legacy: no Template ID, only a SHA-256 templateId.

  • attachedTemplateobject

    A file the user attached to the conversation, filled in by ChatGPT. Other clients leave it empty and pass template instead. Mutually exclusive with template.

  • requestUploadUrlobject

    Instead of template, when you can run shell commands: the file size and SHA-256. Returns uploadUrl and headers, valid 10 minutes for that file only: POST the file as the raw body with those headers (curl -H '<name>: <value>' --data-binary @<file> <uploadUrl>); the answer is the stored template (id, versionId). Prefer it to base64 for any file over a few KB. Not with template, attachedTemplate or sample.

Parámetros de salida

  • idstring

    Stable Template ID (when versioning is enabled).

  • namestring

    Template display name, when one was given.

  • sizenumber

    Template size in bytes.

  • typestring

    Detected template file type.

  • headersobject

    requestUploadUrl only: the headers to send with the file.

  • createdAtnumber

    UTC Unix timestamp (seconds) of the upload.

  • expiresAtnumber

    requestUploadUrl only: UTC Unix timestamp after which the URL is refused.

  • uploadUrlstring

    requestUploadUrl only: POST the file here as the raw body; the answer is the stored template. Nothing is stored before.

  • versionIdstring

    Version ID (SHA-256) of this uploaded version.

  • deployedAtnumber

    UTC Unix timestamp of deployment; 0 means this version is not explicitly deployed.

  • templateIdstring

    versioning: false only: the Version ID (SHA-256) of the upload, not a Template ID.

  • templateExtensionstring

    Detected file extension, e.g. "docx" (legacy/non-versioned mode).