Upload an artifact to DO Spaces and return its durable CDN URL + key.
Upload an artifact to DO Spaces and return its durable CDN URL + key.
Stores the object under <app>/YYYY/MM/<filename> (date derived
server-side) in a dedicated artifact bucket, then returns a public CDN link.
Use this whenever an agent produces a file — an image, diagram, rendered
doc, export — that needs a real URL to attach to a ticket, post, or message.
Provide the content exactly one of three ways:
content_base64: raw bytes, base64-encoded.source_url: an http(s) URL the server fetches (size-capped, SSRF-guarded).source_key: the key of an object already in Spaces to copy into the dated path (optionally withsource_alias/source_bucket).
Args: filename: desired filename (sanitized; extension drives content-type). app: optional namespace segment for the path (default “shared”). alias: write target — “uploads” (default) or “artifacts”. content_type: optional MIME override; otherwise guessed from the filename.
On a name collision in the same prefix, an incrementing zero-padded suffix is appended before the extension (report.png → report-001.png) so existing objects are never clobbered. Returns JSON: .
Authorizations
Body
Response
Tool result. The shape is tool-specific; most tools return a JSON object, some a {"result": ...} envelope.
The response is of type object.