Upload local asset
create_local_asset_uploadCreate one PNG, JPEG, BMP, WebP or MP4 asset for a file available to this coding agent. Convert SVG and GIF images to PNG before calling this tool. metadata with pixel width and height is required for every asset; MP4 also requires durationMs. Images are limited to 5 MiB and MP4 videos to 100 MiB. Execute the returned uploadRequest with any local HTTP client: replace the body.path placeholder with the requested local file and send its exact bytes as the PUT request body with the returned headers. The file bytes never pass through MCP. After a successful PUT, poll list_assets at reasonable intervals for up to 2 minutes for the matching asset to reach status "uploaded" before placing it on a slide. If it is still uploading, stop polling and report that background upload finalization is unavailable; do not upload the file again.
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": {
"workspaceUid": "<workspaceUid>",
"filename": "<filename>",
"mimeType": "<mimeType>",
"filesize": "<filesize>",
"metadata": "<metadata>"
},
"name": "create_local_asset_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| filesize | Yes | Exact file size in bytes. Images are limited to 5 MiB and MP4 videos to 100 MiB. | |
| metadata | Yes | Width and height are pixels; durationMs is required for video/mp4. | |
| mimeType | Yes | ||
| workspaceUid | Yes | From list_workspaces. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | Yes | ||
| uploadRequest | Yes |