billy_upload_file
Upload a local receipt or invoice file to Billy. Provide the file path; use the returned ID to attach it to a bill or invoice.
Instructions
Upload a file (receipt or invoice PDF, or image) from a local path to Billy. WRITE — requires confirm:true. Billy only accepts PDF, JPG, JPEG, PNG, GIF — convert other formats first. Returns the file metadata including the id, which you then pass to billy_attach_file_to_bill or billy_attach_file_to_invoice. MIME type is auto-detected from the extension.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the local file (e.g. /Users/me/Downloads/aws-receipt.pdf). | |
| confirm | No | REQUIRED to execute. Pass true to actually run the mutation. Without it, this tool returns a dry-run preview of what would happen — explicit second call with confirm:true is needed to write. | |
| filename | No | Optional custom filename for Billy. Defaults to the basename of `path`. | |
| contentType | No | Optional MIME type override. Auto-detected from extension if omitted. |