Documents

Merge PDFs

documents_merge_pdfs · Changes data · Markdown

Makes one PDF from several in the store, in the order given.

$0.01 a call

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

An example

Put the quote, the care guide and the fabric samples sheet into one PDF for Hotel Elbblick.

Your agent callsdocuments_merge_pdfs$0.01 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": "Hotel Elbblick offer.pdf",
  "file_ids": [
    "3a5c7e9b-2d4f-4a6c-8e0b-1d3f5a7c9e2b",
    "4b6d8f0a-3e5a-4b7d-9f1c-2e4a6c8e0b3d",
    "5c7e9a1b-4f6b-4c8e-8a2d-3f5b7d9f1c4e"
  ]
}
What comes back
{
  "file": {
    "file_id": "4bfc7b16-2d04-4477-a614-d8c86665dc3a",
    "name": "Hotel Elbblick offer.pdf",
    "content_type": "application/pdf",
    "size": "2.2 KB",
    "size_bytes": 2289,
    "sha256": "ac282849f566bcd2568eabb7f55e80eb944751e8840c8630f2db4b84f3e9b39d",
    "created_at": "2026-10-14T08:00:00+00:00",
    "download_url": "https://cncto.co/d/4bfc7b16-2d04-4477-a614-d8c86665dc3a?t=eyJmIjoiNGJmYzdiMTYtMmQwNC00NDc3LWE2MTQtZDhjODY2NjVkYzNhIiwiZXhwIjoxNzkyMTYxNjAzfQ:1xHMcl:j3WjerZn4IrWlKHPrfSKugWhFrmRGJ0mniZGbivk-Mg",
    "link_expires_in_hours": 24
  },
  "pages": 6
}

Use it when

Several PDFs should go out as one: an offer pack, a signed bundle.

What it does

One PDF from several in the store, in the order given.

What comes back

file: the merged 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_idsRequiredarray of strings2 to 50 items.
nameRequiredstringName 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_merge_pdfs on https://api.conecto.chat/mcp/documents. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/documents_merge_pdfs \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Hotel Elbblick offer.pdf","file_ids":["3a5c7e9b-2d4f-4a6c-8e0b-1d3f5a7c9e2b","4b6d8f0a-3e5a-4b7d-9f1c-2e4a6c8e0b3d","5c7e9a1b-4f6b-4c8e-8a2d-3f5b7d9f1c4e"]}'

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.
invalid_pdf422One of the PDFs could not be merged (damaged or password-protected).Leave that PDF out, or open and save it again.
too_large413The PDFs are too large together.Merge fewer at a time.
storage_full409The file store has no room for the new file.Delete files with files_delete, or add room with files_add_storage.

Give this to your agent.

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