upload_asset_file
Upload a local or Base64-encoded file as a data asset in a watsonx project by providing the project ID, asset name, and file content or path.
Instructions
EXPERIMENTAL — Phase 3 / low-confidence (spec/02-tools.md).
Only the create-data-asset step is verified live. The attachment-creation body shape is from a real example request, not independently re-verified. The signed-URL PUT and "complete" steps are entirely unconfirmed — this implementation is a best-effort, defensive sequence that should be re-verified against a live cluster before being relied on. If it fails partway through, the data asset (and possibly a dangling attachment record) may be left behind — this tool does not attempt rollback.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| file_path | No | Local file path. Provide this or content_base64. | |
| mime_type | No | ||
| project_id | Yes | ||
| description | No | ||
| content_base64 | No | Base64-encoded file content. Provide this or file_path. |