GetAttachmentTool
Attachment metadata and a signed download URL, valid for 15 minutes, for a piece attachment (avoids inlining binary content).
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": {
"account_code": "<account_code>",
"piece_relative_id": "<piece_relative_id>",
"attachment_id": "<attachment_id>"
},
"name": "GetAttachmentTool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_code | Yes | Account code (e.g., "bcp", "jchsoft") | |
| attachment_id | Yes | Database ID (primary key) of the attachment (not relative_id) | |
| piece_relative_id | Yes | Relative ID of the piece the attachment belongs to |