The catalog as a PDF
get_catalog_pdfA download link for the catalog as a PDF, draft or published. The stored PDF comes back at once when it is newer than the last change; otherwise a render starts — compressed by default, pdfFormat: "print" for press quality — and the link comes back when it finishes within about twenty seconds. state is "ready" (with downloadUrl), "rendering" (with jobId), "failed" (with reason) or "not_configured". "rendering" is not a failure — a large catalog takes a few minutes — and a call with that jobId returns the link once the render is done.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"catalogId": "<catalogId>"
},
"name": "get_catalog_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | No | From an earlier answer with state "rendering" | |
| catalogId | Yes | Catalog id, as returned by list_catalogs | |
| pdfFormat | No | Forces a fresh render in that format |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | No | With "rendering": call again with it to collect the PDF | |
| state | Yes | ||
| title | Yes | ||
| cached | No | The stored PDF, newer than the last change | |
| reason | No | ||
| catalogId | Yes | ||
| downloadUrl | No | With "ready" | |
| generatedAt | No |