CreateAttachmentLinkTool
Returns a link the user opens to attach files (screenshots, photos, PDFs) to a piece themselves, without signing in. Use this when the user wants a file attached that you only see in the chat (a pasted screenshot or photo): you cannot upload it yourself. Give the user the returned link; they open it and pick the file. The link works for 30 minutes, only for this piece.
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>"
},
"name": "CreateAttachmentLinkTool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_code | Yes | Account code (e.g., "bcp", "jchsoft") | |
| piece_relative_id | Yes | Relative ID of the piece the files will be attached to |