Merge PDFs
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.
{
"name": "Hotel Elbblick offer.pdf",
"file_ids": [
"3a5c7e9b-2d4f-4a6c-8e0b-1d3f5a7c9e2b",
"4b6d8f0a-3e5a-4b7d-9f1c-2e4a6c8e0b3d",
"5c7e9a1b-4f6b-4c8e-8a2d-3f5b7d9f1c4e"
]
}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
| Name | Type | What it is |
|---|---|---|
file_idsRequired | array of strings | 2 to 50 items. |
nameRequired | string | Name for the new file, e.g. "Quote 1042.pdf". 1 to 200 characters. |
link_hours | integer | 1 to 168. Default: 24. |
The call
Over MCP, call documents_merge_pdfs on https://api.conecto.chat/mcp/documents. Over REST:
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.
| Code | When | What to do |
|---|---|---|
not_found404 | No file in the store has that file_id. | Find it with files_list, or upload it first. |
invalid_pdf422 | One of the PDFs could not be merged (damaged or password-protected). | Leave that PDF out, or open and save it again. |
too_large413 | The PDFs are too large together. | Merge fewer at a time. |
storage_full409 | The file store has no room for the new file. | Delete files with files_delete, or add room with files_add_storage. |
More Documents tools
All 8 tools- Make a PDF
documents_create_pdfMakes a PDF from Markdown or HTML and saves it in the file store with a download link.$0.02 a call - Convert a file to PDF
documents_convert_to_pdfTurns a Word, Excel, PowerPoint, OpenDocument, RTF, CSV, text, Markdown or HTML file into a PDF; the original stays.$0.02 a call - List a template's fields
documents_template_fieldsThe placeholders in a Word (.docx) template, so you know what data filling it needs.Free* - Fill a Word template
documents_fill_templateMakes a new Word file from a .docx template, its placeholders filled from data.$0.02 a call - Read a PDF
documents_read_pdfThe text of a PDF in the store, page by page, up to 50 pages a call.Free* - See the pages of a scan
documents_page_imagesThe pages of a scanned PDF or a photo of a document as images to look at, up to 10 pages a call.$0.005 a call - Make a PowerPoint deck
documents_create_deckA PowerPoint deck from your slides, plain or in the business's template, with editable charts, tables and each slide's sources.$0.10 a call
Give this to your agent.
Set up Conecto from https://conecto.chat/SKILL.md