Upload a game asset
sekai_upload_assetUpload ONE of the game's own files (an image, sound, video, 3D model or font it ships with) so the html can link it instead of inlining it. Pass the file name, its size and its sha256. Returns put_url (PUT the raw bytes, Content-Type as returned) and the url to put in the html. Accepted: gif, glb, jpg, m4a, mp3, mp4, ogg, otf, png, ttf, wav, webm, webp, woff2. The bytes must be what the extension says. Call once per file; for art Sekai already has, use sekai_search_assets instead.
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": {
"filename": "<filename>",
"size_bytes": "<size_bytes>",
"content_sha256": "<content_sha256>"
},
"name": "sekai_upload_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| size_bytes | Yes | ||
| content_sha256 | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||