Attach Media to Post
invoke_attach_assets_to_postAttach media to a DRAFT with Asset IDs or a real HTTPS file URL (images up to 20MB; videos 50MB). Inline Base64 is an optional 2MB image fallback only; do not compress or retry unresolved file references.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"post_id": "<post_id>"
},
"name": "invoke_attach_assets_to_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Client-provided HTTPS file reference; never invent. | |
| post_id | Yes | Socializioz post ID. | |
| file_url | No | Public HTTPS media URL for this draft. (format: "uri") | |
| filename | No | Original media filename. | |
| asset_ids | No | Existing workspace Asset IDs. | |
| mime_type | No | Claimed image MIME; checked against bytes. | |
| base64_data | No | PNG/JPEG/WebP/GIF Base64 or data URI (max 2MB decoded). Requires original bytes; never fabricate or combine with file/file_url. (minLength: 1; maxLength: 2796300) |