browser_upload_stage
Stage a file (image, video, or document) into the project's upload library. Accepts local path, URL, data URL, or base64. Returns a reusable stashId for subsequent uploads.
Instructions
Stage a file (image/video/document) into the project's content-addressed upload library at .continuum/uploads/. Accepts one of: local path, https URL, data URL, or raw base64. Returns a stashId that can be passed to browser_upload_file (or reused across multiple uploads). Idempotent — same bytes always produce the same stashId.
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": {
"source": "<source>"
},
"name": "browser_upload_stage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Exactly one of: path, url, dataUrl, base64. Use `mime` to supplement base64. | |
| mime | No | MIME override (used when source is raw base64). | |
| name | No | Friendly filename (some upload endpoints inspect form-data name). | |
| keep | No | session | |
| maxBytes | No | Reject if file exceeds this many bytes. Default 50MB; hard cap 100MB. |