Upload Local Media
beatra.assets.uploadCreate a short-lived upload grant for an image, audio, or video file. Follow the returned HTTP PUT instructions; its response returns the artifact_id.
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": {
"mime_type": "<mime_type>",
"size_bytes": "<size_bytes>"
},
"name": "beatra.assets.upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | ||
| mime_type | Yes | Exact media MIME type. Published aliases are accepted and normalized to their canonical MIME in the grant and artifact. | |
| size_bytes | Yes | Exact local file byte length; the upload must match it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| upload | No | ||
| grant_id | No | ||
| mime_type | No | ||
| expires_at | No | ||
| media_type | No | ||
| size_bytes | No |