yoto_media_upload_begin
Starts an audio upload by checking whether Yoto already has the file's SHA-256 hash; if not, returns an upload URL to PUT the audio before waiting for completion.
Instructions
Start an audio upload. exists: true means Yoto already has these bytes (no PUT needed).
Otherwise PUT the file to upload_url (bin/yoto-upload does this), then call yoto_media_upload_wait.
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": {
"sha256": "<sha256>",
"filename": "<filename>"
},
"name": "yoto_media_upload_begin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha256 | Yes | ||
| account | No | ||
| filename | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||