Read an attachment
attachments_getRead one file attached in a company's books - a bill's or an expense's receipt, or one a bank line's explanation names; on Xero or Zoho Books one attached to an invoice or a bill - by its id, live from FreeAgent, Xero, QuickBooks or Zoho Books: what the file says as text where its words could be read - its first 20,000 characters, omittedCharacters counting the rest - outcome naming why where not. On Zoho Books it can also be one attached to a journal or a credit note. On QuickBooks it is one an invoice or bill names under attachments, or one attachments_create attached. A FreeAgent file carries content_src, the file itself, served to a plain GET carrying no credential until expires_at; a Xero or QuickBooks file carries none. A Zoho Books file carries its file_name and content_type. A company that could not be read, or whose file did not arrive, stands under unread with why.
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": {
"company": "<company>",
"attachment": "<attachment>"
},
"name": "attachments_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company | Yes | The id companies_list gives the company. | |
| attachment | Yes | The attachment's id, as bills_get, invoices_get, expenses_list or bank_transactions_list answers it - on Xero the whole id an entry under attachments carries. On Zoho Books and QuickBooks, also as attachments_create answers it. On Zoho Books, the id an entry under documents carries in invoices_get, bills_get, expenses_create or attachments_create. |