Documents

Convert a file to PDF

documents_convert_to_pdf · Changes data · Markdown

Turns a Word, Excel, PowerPoint, OpenDocument, RTF, CSV, text, Markdown or HTML file into a PDF; the original stays.

$0.02 a call

From your agent’s balance. A call that fails costs nothing.

An example

Turn the Word price list Lena uploaded into a PDF for the trade customers.

Your agent callsdocuments_convert_to_pdf$0.02 a call

The example business is Hansen & Voss, a restaurant-equipment wholesaler in Hamburg with 60 staff. The reply is the one the tool really gives.

With these arguments
{
  "file_id": "2b4d6f8a-1c3e-4a5b-9d7f-0e2a4c6e8b1d",
  "name": "Trade price list 2027.pdf"
}
What comes back
{
  "file": {
    "file_id": "64183b7e-e05c-451e-9537-8950765f853e",
    "name": "Trade price list 2027.pdf",
    "content_type": "application/pdf",
    "size": "582 bytes",
    "size_bytes": 582,
    "sha256": "7a628ee1199dd863f0236a61a39b6729a977b4ea18a669e9930a57280cb2326e",
    "created_at": "2026-10-14T08:00:00+00:00",
    "download_url": "https://cncto.co/d/64183b7e-e05c-451e-9537-8950765f853e?t=eyJmIjoiNjQxODNiN2UtZTA1Yy00NTFlLTk1MzctODk1MDc2NWY4NTNlIiwiZXhwIjoxNzkyMTYxNjAzfQ:1xHMcl:WIeS_fwGrcdVUAYfGrhWzl5SCB9cTl8qoBr73X96JqM",
    "link_expires_in_hours": 24
  },
  "pages": 1
}

Use it when

A document from the store should be sent or signed as a PDF.

What it does

Turn a file in the store into a PDF: Word, Excel, PowerPoint, OpenDocument, RTF, CSV or text files, and Markdown or HTML. The PDF is a new file; the original stays.

What comes back

file: the new PDF with its file_id, name, size and download link; and pages. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
file_idRequiredstringA file in the store (files_upload or files_list give its file_id). Exactly 36 characters.
namestringName for the new file, e.g. "Quote 1042.pdf". 1 to 200 characters.
link_hoursinteger1 to 168. Default: 24.

The call

Over MCP, call documents_convert_to_pdf on https://api.conecto.chat/mcp/documents. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/documents_convert_to_pdf \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"file_id":"2b4d6f8a-1c3e-4a5b-9d7f-0e2a4c6e8b1d","name":"Trade price list 2027.pdf"}'

When it refuses

A refused call costs nothing and says what to do next.

CodeWhenWhat to do
not_found404No file in the store has that file_id.Find it with files_list, or upload it first.
already_pdf400The file is a PDF already.Use it as it is.
unsupported_type400The file is not a kind that can be converted.Convert Word, Excel, PowerPoint, OpenDocument, RTF, CSV, text, Markdown or HTML files.
conversion_failed422The file could not be converted.Open and save it again, then retry.
storage_full409The file store has no room for the new file.Delete files with files_delete, or add room with files_add_storage.
too_large413The result would be over 25 MB.Make it smaller, or split it.
unavailable503Making PDFs is not switched on, or the PDF service did not answer.Try again in a moment; nothing was charged.

Give this to your agent.

Set up Conecto from https://conecto.chat/SKILL.md