Get asset upload URL
asset_upload_urlUpload any binary asset (images, fonts, PDF, video) up to 20 MiB: get the file size with wc -c < file, call this tool with that size, then run the returned curl command exactly as given. It returns a short-lived (15 min) signed PUT URL. Allowed types: png, jpeg, gif, webp, svg, pdf, woff/woff2/ttf/otf fonts, mp4, webm, csv, json, plain text, markdown, css, javascript. After the PUT succeeds, reference the asset from artifact HTML as /_blob/. Text assets (SVG, CSV, JSON, CSS, JS) should instead be written as artifact files with write_files.
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": {
"id": "<id>",
"filename": "<filename>",
"contentType": "<contentType>",
"size": "<size>"
},
"name": "asset_upload_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| size | Yes | ||
| filename | Yes | ||
| contentType | Yes |