upload_asset
Upload a local file to Picsha AI, which automatically triggers AI analysis (metadata, thumbnails, faces, tags). The asset returns in pending state; use get_asset to retrieve final processed results.
Instructions
Upload a local file directly to the Picsha AI platform. This acts as a proxy, fetching a pre-signed S3 URL and executing the PUT request automatically. If your agent is running with user sandboxing, this file will automatically be securely bound to that user's identity. Note: Uploading immediately triggers the asynchronous 'picsha-ai-ingest' pipeline which will extract metadata, generate thumbnails, and run AI analysis (faces, tags, bedrcock summaries). Therefore, the returned asset will initially be in a 'pending' state. You should use the 'get_asset' tool a few seconds after uploading to retrieve the final AI-processed results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Absolute path to the local file (e.g. /Users/name/images/photo.jpg) to upload | |
| filename | No | Optional original filename to associate with the asset. Defaults to the file's basename. |