CreateUploadUrlTool
Returns a short-lived URL for uploading a file directly to storage and a signed blob id for attaching it to a piece or to a message on it. attachable_to_piece says whether the piece itself will take the file; when false, attach it to a message on the 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>",
"file_name": "<file_name>",
"byte_size": "<byte_size>",
"checksum": "<checksum>"
},
"name": "CreateUploadUrlTool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| checksum | Yes | Base64-encoded MD5 digest of the file, as printed by `openssl md5 -binary FILE | base64` | |
| byte_size | Yes | Exact file size in bytes | |
| file_name | Yes | Filename with extension (e.g., "screenshot.png") | |
| account_code | Yes | Account code (e.g., "bcp", "jchsoft") | |
| content_type | No | MIME type of the file; derived from the file extension when omitted | |
| piece_relative_id | Yes | Relative ID of the piece the file will be attached to |