upload_asset
Uploads an asset to Storyblok in one operation by creating the asset record, sending the file to S3, and finalizing it automatically from a local path or HTTP/HTTPS URL.
Instructions
Upload an asset to Storyblok in a single operation. Handles the Storyblok asset record creation, S3 file upload, and finalization automatically. Supports local file paths and HTTP/HTTPS URLs as source.
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": {
"space_id": "<space_id>",
"filename": "<filename>",
"source": "<source>"
},
"name": "upload_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alt | No | Alt text for the asset | |
| title | No | Title for the asset | |
| region | No | Storyblok region (eu, us, cn, ap, ca). Do NOT provide this parameter by default — it is auto-detected from space_id. Only provide it when the operation description explicitly asks you to. | |
| source | Yes | Local file path or HTTP/HTTPS URL of the file to upload | |
| filename | Yes | Filename including extension (e.g. 'image.jpg') | |
| space_id | Yes | Storyblok space ID | |
| copyright | No | Copyright information for the asset | |
| asset_folder_id | No | ID of the asset folder to upload into |