prepare_reference_upload
Prepare a private reference upload. Calculate the local file SHA-256 and byte size, call this tool, then PUT the raw file bytes to the returned short-lived URL using file/HTTP tools. Does not spend image credits.
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": {
"mimeType": "<mimeType>",
"bytes": "<bytes>",
"sha256": "<sha256>"
},
"name": "prepare_reference_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | Yes | ||
| sha256 | Yes | ||
| mimeType | Yes |