Upload asset
upload_assetStores one binary file's bytes for a later publish, for a client that cannot make an HTTP PUT to the signed url publish returns. Takes the asset's path in the app and its content as standard base64. Returns the sha256 and bytes that name this path in assets on the next publish.
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": {
"path": "<path>",
"content_base64": "<content_base64>"
},
"name": "upload_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | the asset's path in the app, as publish will name it | |
| app_id | No | the app to upload into, from a reply or list_apps | |
| content_base64 | Yes | the file's raw bytes encoded as standard base64 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| bytes | Yes | ||
| sha256 | Yes |