Carbone MCP
carbone_mcpGenerate PDF, DOCX, XLSX and other documents from templates and JSON data, convert files and manage stored templates through Carbone's hosted MCP server.
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ónConvert 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).
CARBONE_MCP_CONVERT_DOCUMENTAcciónConvert 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
filestringThe 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.
convertToanyObligatorioOutput 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": { ... } }.
converterstringenumConverter, 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.
LOCIreportNamestringFile name without extension, taken literally (no tags), e.g. "contract".
returnLinkbooleanIf false, return the file itself (as asAttachment). True by default for formats not returned inline. Exclusive with asAttachment.
hardRefreshbooleanIf 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.
asAttachmentbooleanIf 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.
attachedFileobjectA file the user attached to the conversation, filled in by ChatGPT. Other clients leave it empty and pass file instead. Mutually exclusive with file.
egressAuthorizationstringAuthorization 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ónDelete 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.
CARBONE_MCP_DELETE_TEMPLATEAcciónDelete 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
templateIdstringObligatorioTemplate ID (every version) or Version ID (that version only), from list_templates.
Parámetros de salida
Sin parámetros.
Download templateCARBONE_MCP_DOWNLOAD_TEMPLATEAcciónDownload 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.
CARBONE_MCP_DOWNLOAD_TEMPLATEAcciónDownload 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
samplebooleanIf true, return the sample dataset stored at upload, as JSON, instead of the file; an error if there is none.
templateIdstringObligatorioTemplate ID (its deployed version) or Version ID, from list_templates.
asAttachmentbooleanIf 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ónFind 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.
CARBONE_MCP_FIND_TEMPLATE_EXAMPLESAcciónFind 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
idstringOne example, by its id.
kindstringenum"gallery": complete business documents. "format-guide": one feature of one format, for beginners.
galleryformat-guidelevelstringenumbeginnerintermediateadvancedlimitinteger1 to 25 results (default 8).
querystringKeywords, e.g. "invoice barcode", "excel chart", "shipping label", "pdf form".
useCasestringA use case: finance, logistics, reports, compliance, tickets, planning, presentations, publishing.
resultFormatstringGenerated format, e.g. "pdf", "xlsx", "csv".
templateFormatstringTemplate format, e.g. "docx", "xlsx", "html".
Parámetros de salida
totalintegerObligatorioHow many examples match (more than listed when above the limit).
examplesobject[]Obligatorio
Get api statusCARBONE_MCP_GET_API_STATUSAcciónCheck 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.
CARBONE_MCP_GET_API_STATUSAcciónCheck 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
messagestringObligatorioStatus message returned by the API.
versionstringObligatorioThe running Carbone API version.
Get capabilitiesCARBONE_MCP_GET_CAPABILITIESAcciónReturns 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.
CARBONE_MCP_GET_CAPABILITIESAcciónReturns 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ónGet 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.
CARBONE_MCP_GET_RENDER_RESULTAcciónGet 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
jobIdstringObligatorioThe job ID render_document returned.
Parámetros de salida
Sin parámetros.
Inspect templateCARBONE_MCP_INSPECT_TEMPLATEAcciónList 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.
CARBONE_MCP_INSPECT_TEMPLATEAcciónList 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
templatestringA 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.
templateIdstringTemplate ID (its deployed version) or Version ID, from list_templates. Exclusive with template.
attachedTemplateobjectA 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[]ObligatorioThe Carbone tags of the template, as written, e.g. "{d.customer.name}", "{d.items[i].label}", "{c.company}". {t()} translation tags are not listed.
errorobjectError reported by Carbone while inspecting; only present when there is one.
sampleobjectObligatorioA sample dataset matching the template structure, with placeholder values: { "data": {...}, "complement": {...} }. Pass sample.data as render_document data, and sample.complement as complement.
signaturesarraySignature fields found in the template; only present when there are any.
List categoriesCARBONE_MCP_LIST_CATEGORIESAcciónList the template categories in use, for the category filter of list_templates or upload_template.
CARBONE_MCP_LIST_CATEGORIESAcciónList 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[]ObligatorioTemplate category names in use.
List tagsCARBONE_MCP_LIST_TAGSAcciónList the tags in use across templates. To find the templates with a tag, call list_templates and keep the results whose tags include it.
CARBONE_MCP_LIST_TAGSAcciónList 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[]ObligatorioTemplate tag names in use.
List templatesCARBONE_MCP_LIST_TEMPLATESAcciónList 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.
CARBONE_MCP_LIST_TEMPLATESAcciónList 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
idstringFilter by Template ID. Cannot be a Version ID.
limitinteger1 to 100 results (default 100); use cursor for more.
cursorstringThe nextCursor of the previous response.
originintegerUpload origin: 0 API (this server), 1 Carbone Studio, 2 Salesforce, 3 Odoo, 4 HubSpot.
searchstringFuzzy search in template names, or exact match on Template ID / Version ID.
categorystringFilter by category (e.g. "invoices", "legal").
versionIdstringFilter by Version ID (SHA-256 format).
includeVersionsbooleanIf true, returns all versions for each template. Default: false (only deployed version).
Parámetros de salida
hasMorebooleanObligatorioWhether more results are available via the cursor.
templatesobject[]ObligatorioThe matching templates (all fields).
nextCursorstringCursor to pass to the next list_templates call.
Render documentCARBONE_MCP_RENDER_DOCUMENTAcciónGenerate 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.
CARBONE_MCP_RENDER_DOCUMENTAcciónGenerate 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
dataanyJSON 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.
enumanyLabels for :convEnum(TYPE), e.g. { "STATUS": { "1": "Active" } }, or a reference to a JSON file.
langstringLocale for {t()} translations, :formatN and :formatC, e.g. "fr-fr", "en-us".
asyncbooleanIf 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.
keepTagsbooleanIf true, skip templating: tags stay as written, to proof a template's layout. Exclusive with data.
templatestringA 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.
timezonestringIANA time zone for :formatD dates, e.g. "America/New_York". Default "Europe/Paris".
convertToanyOutput 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": { ... } }.
converterstringenumConverter, 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.
LOCIcomplementanyExtra data for {c.…} tags (company details, constants), or a reference to a JSON file.
reportNamestringFile name without extension; may use tags, e.g. "invoice-{d.id}" (taken literally with keepTags).
returnLinkbooleanIf false, return the file itself (as asAttachment). True by default for formats not returned inline. Exclusive with asAttachment.
templateIdstringA 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.
webhookUrlstringuriOnly 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.
batchOutputstringenumBatch result: "zip" (default, named after reportName, or batch.zip without one) or "pdf", one concatenated PDF (needs convertTo "pdf").
zippdfhardRefreshbooleanIf true, recompute pagination and the table of contents after rendering. Needs convertTo.
variableStrstringAliases for the whole template, e.g. "{#buyer = d.order.customer}", then {$buyer.name} in it.
asAttachmentbooleanIf 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.
batchSplitBystringOne 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).
translationsanyStrings for {t(key)}, selected by lang: { "fr-fr": { "hello": "Bonjour" } }, or a reference to a JSON file.
currencyRatesanyRates per currency, base 1: { "EUR": 1, "USD": 1.08 }, or a reference to a JSON file.
currencySourcestringISO 4217 currency of the amounts in data, for :formatC. Set with currencyTarget and currencyRates.
currencyTargetstringISO 4217 currency to convert the amounts to.
webhookHeadersobjectHeaders Carbone sends to webhookUrl, e.g. { "authorization": "secret" }.
batchReportNamestringName of each file in the batch ZIP, without extension; tags resolve per item, e.g. "invoice-{d.id}".
attachedTemplateobjectA 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.
egressAuthorizationstringAuthorization header value Carbone sends when it fetches images, PDFs or the webhook while rendering.
preReleaseFeatureInintegerTurn 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ónChange 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.
CARBONE_MCP_UPDATE_TEMPLATE_METADATAAcciónChange 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
namestringNew name (max 200 characters).
tagsstring[]New tags, replacing the current ones: sorted, deduplicated, 100 characters in all.
commentstringNew comment (max 200 characters).
categorystringNew category (max 200 characters).
expireAtintegerDelete this version at this UTC Unix time (seconds); 0 cancels a scheduled deletion.
deployedAtinteger42000000000 deploys this version now: renders by Template ID use the most recently deployed version.
templateIdstringObligatorioThe version to change: a Version ID, or a Template ID for its deployed version.
moveToTemplateIdstringOnly 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
idstringTemplate ID the version now belongs to (returned when moveToTemplateId was used).
namestringName, returned if updated.
tagsstring[]Tags, returned if updated.
commentstringComment, returned if updated.
categorystringCategory, returned if updated.
expireAtnumberDeletion timestamp (0 = never expires), returned if updated.
versionIdstringObligatorioVersion ID of the patched version.
deployedAtnumberDeployment timestamp, returned if updated.
Upload templateCARBONE_MCP_UPLOAD_TEMPLATEAcciónStore 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).
CARBONE_MCP_UPLOAD_TEMPLATEAcciónStore 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
idstringTemplate ID to add this upload to as a new version; omitted: a new template. Never a Version ID.
namestringDisplay 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" } }].
commentstringComment on this version (max 200 characters).
categorystringCategory, e.g. "invoices" (max 200 characters).
expireAtintegerDelete 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.
templatestringThe 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).
deployedAtinteger42000000000 deploys this version now: renders by Template ID use the most recently deployed version. Earlier versions stay stored. update_template_metadata redeploys one.
versioningbooleanLeave true (default). false is legacy: no Template ID, only a SHA-256 templateId.
attachedTemplateobjectA file the user attached to the conversation, filled in by ChatGPT. Other clients leave it empty and pass template instead. Mutually exclusive with template.
requestUploadUrlobjectInstead 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
idstringStable Template ID (when versioning is enabled).
namestringTemplate display name, when one was given.
sizenumberTemplate size in bytes.
typestringDetected template file type.
headersobjectrequestUploadUrl only: the headers to send with the file.
createdAtnumberUTC Unix timestamp (seconds) of the upload.
expiresAtnumberrequestUploadUrl only: UTC Unix timestamp after which the URL is refused.
uploadUrlstringrequestUploadUrl only: POST the file here as the raw body; the answer is the stored template. Nothing is stored before.
versionIdstringVersion ID (SHA-256) of this uploaded version.
deployedAtnumberUTC Unix timestamp of deployment; 0 means this version is not explicitly deployed.
templateIdstringversioning: false only: the Version ID (SHA-256) of the upload, not a Template ID.
templateExtensionstringDetected file extension, e.g. "docx" (legacy/non-versioned mode).