Create an asset
create_assetUpload an image to the workspace's asset library. Provide EITHER file_base64 (+ filename) OR source_url — exactly one. For a file the user uploaded in chat (no public URL), send its bytes as file_base64; if you cannot read the raw bytes on this platform, ask the user for a hosted URL or reuse an existing asset from list_assets instead of guessing. Non-images, bad base64, oversized files (>15MB), or a disallowed URL return 422.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Display name (defaults to the filename). | |
| role | No | Optional role: company_logo, profile_picture, or banner. | |
| context | Yes | Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as "a user", "the customer", or "an account". Example: "Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution." | |
| filename | No | Original filename (required when `file_base64` is given). | |
| source_url | No | Public http(s) URL the server downloads the image from (alternative to file_base64). Redirects ARE followed (each hop re-checked); hosts resolving to private/loopback addresses are blocked. If a fetch fails (some hosts block server-side downloads), pass the bytes as `file_base64` instead. | |
| file_base64 | No | Base64-encoded image bytes. Provide WITH `filename`, or use `source_url` instead. A `data:` URI, line-wrapped base64, or base64url is accepted as-is — the server unwraps it, so pass whatever your file-reading helper returned without re-encoding. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |