Preview what an invoice would contain
invoice.preview_draftUse this when the user asks what they could invoice a client for, or wants to see unbilled work before creating an invoice. Creates nothing. Returns the lines, hours, and total an invoice.create_draft call with the same arguments would produce.
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": {
"client": "<client>"
},
"name": "invoice.preview_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| client | Yes | Client name or id | |
| through_date | No | Include unbilled entries up to and including this date. Default: today. | |
| group_lines_by | No | Default "project" | |
| tax_rate_percent | No |