promptbill_generate_invoice_pdf
Generates a local PDF invoice that combines per-repo AI coding spend with optional labor hours, markup, and GST/VAT for client billing.
Instructions
Generate a native PDF 1.4 client pass-through invoice combining local AI coding spend per Git repo with optional engineering labor, markup %, and GST/VAT. Writes the PDF locally on disk.
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": {
"clientName": "<clientName>"
},
"name": "promptbill_generate_invoice_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Lookback window in days. | |
| demo | No | Generate invoice from demo data. | |
| repos | No | Git repositories to include on this client invoice (defaults to all scanned repos). | |
| outPath | No | Output PDF file path (defaults to ./<invoiceNumber>.pdf). | |
| currency | No | Invoice currency (default USD). | |
| laborRate | No | Optional hourly rate. | |
| clientName | Yes | Client or company name on the invoice. | |
| laborHours | No | Optional engineering hours to include. | |
| taxPercent | No | GST/VAT percentage (default 0). | |
| clientEmail | No | Optional client billing email. | |
| exchangeRate | No | FX multiplier from USD to currency (default 1.0). | |
| markupPercent | No | AI compute pass-through markup % (default 0). | |
| includeAuditAppendix | No | Include Page 2 Sanitized AI Compute Audit Appendix (requires Pro/Agency license). |