Get an expense's invoice file
get_expense_fileGet the invoice attached to an expense: a download link valid for 15 minutes and, with includeContent, the file itself (PDF or image) so you can read it. When the invoice was cut out of a PDF that held several (the expense has sourceFile), source: true gets that whole PDF, kept intact, instead. Requires the expenses feature.
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": {
"id": "<id>"
},
"name": "get_expense_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The expense ID | |
| source | No | Get the whole PDF the invoice was cut out of, not the invoice itself | |
| includeContent | No | Also return the file (up to 5 MB) to read it |