Documents

Make a PDF

documents_create_pdf · Changes data · Markdown

Makes a PDF from Markdown or HTML and saves it in the file store with a download link.

$0.02 a call

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

An example

Make a one-page PDF of our care guide for the combi steamer, to put in every delivery box.

Your agent callsdocuments_create_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
{
  "name": "Caring for your combi steamer.pdf",
  "paper": "a4",
  "markdown": "# Caring for your combi steamer\n\nRun the cleaning program every evening and leave the door open overnight. Skip scouring pads: they scratch the steel.\n\n## Once a month\n\n1. Descale the steam generator.\n2. Check the door seal for cracks.\n3. Clean the air filter behind the side panel.\n\nQuestions? service@hansenvoss.example"
}
What comes back
{
  "file": {
    "file_id": "6f774aa4-fff8-48ff-be34-dc1920af486a",
    "name": "Caring for your combi steamer.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/6f774aa4-fff8-48ff-be34-dc1920af486a?t=eyJmIjoiNmY3NzRhYTQtZmZmOC00OGZmLWJlMzQtZGMxOTIwYWY0ODZhIiwiZXhwIjoxNzkyMTYxNjAzfQ:1xHMcl:pH5nN_64b3kqVHQwzoHWTu1Zuz_ryqyYfuK2UzR6VS4",
    "link_expires_in_hours": 24
  },
  "pages": 1
}

Use it when

The business needs a document as a PDF: a guide, a letter, a report, a price list.

What it does

A PDF from Markdown or HTML, saved in the file store with a download link. Markdown gets a clean document style (headings, tables, lists); HTML is printed the way Chrome prints it, without running JavaScript. Images must be public https links or data: URLs. Give exactly one of markdown or html.

What comes back

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

Inputs

NameTypeWhat it is
nameRequiredstringName for the new file, e.g. "Quote 1042.pdf". 1 to 200 characters.
markdownstringUp to 500,000 characters.
htmlstringUp to 1,000,000 characters.
cssstringExtra CSS, e.g. a font size or a logo. Up to 50,000 characters.
paperstringOne of: a4,letter,legal. Default: a4.
landscapebooleanDefault: false.
margin_mminteger0 to 50. Default: 18.
link_hoursinteger1 to 168. Default: 24.

The call

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

Terminal
curl -X POST https://api.conecto.chat/v1/tools/documents_create_pdf \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Caring for your combi steamer.pdf","paper":"a4","markdown":"# Caring for your combi steamer\n\nRun the cleaning program every evening and leave the door open overnight. Skip scouring pads: they scratch the steel.\n\n## Once a month\n\n1. Descale the steam generator.\n2. Check the door seal for cracks.\n3. Clean the air filter behind the side panel.\n\nQuestions? service@hansenvoss.example"}'

When it refuses

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

CodeWhenWhat to do
invalid_input400Neither or both of markdown and html were given.Give exactly one of them.
conversion_failed422The content could not be made into a PDF.Check the HTML or Markdown.
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