mhlb_print_transaction
Generate a printable receipt PDF for a specific transaction ID, returning the local file path, inline base64, or a hosted download link using the account’s real transaction data.
Instructions
Generate the printable receipt PDF for one transaction. Pass the transaction id from mhlb_list_transactions; the server fetches that transaction’s detail record and has the endpoint render it, so the receipt always reflects the account’s real data. Locally the PDF is written to disk and its path returned (or the bytes inline as base64 with inline: true); on a hosted server it comes back as a signed, expiring download link (url, expiresAt).
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": {
"transactionId": "<transactionId>"
},
"name": "mhlb_print_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inline | No | Return the PDF as base64 in the result instead of writing it to a file. Default false. On a hosted server a report over the inline limit comes back as a download link instead. | |
| filename | No | Output filename. Defaults to "Transaction.pdf". | |
| isCreditType | No | Render as a credit rather than a payment. Default false. | |
| transactionId | Yes | Transaction id (the `id` field from mhlb_list_transactions). |