Upload asset
upload_assetAdd an image or video to the user's SocialClaw media library so it can be attached to a post. Pass exactly one of: file (a file the user attached in this chat), sourceUrl (a direct public http(s) link to the image or video file, not a web page), or contentBase64 (small files only). Files up to 1 GB are supported through file or sourceUrl. The result is the asset: when status is ready, use its publicUrl as media_link in validate_schedule/apply_schedule. Large videos may come back with status uploading; then call get_asset with the asset id until status is ready (or failed) before scheduling.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "upload_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | A file the user attached in the conversation. | |
| filename | No | Optional filename including extension, e.g. launch.png. Inferred from the file or URL when omitted. | |
| sourceUrl | No | Direct public http(s) URL of the image or video file. | |
| contentBase64 | No | Base64-encoded file content. Small files only; prefer file or sourceUrl. |