Import attached files
import_chat_fileSave images or videos the user attached to their message into their PostNext asset library. Returns each saved file's url: pass it in mediaUrls (or media) of create_post_draft or update_post_draft. Files that could not be imported are listed in failed with the reason; the saved ones need no retry. Use this when the user has attached a photo or video and wants it in a post. JPEG, PNG, GIF, WebP or AVIF images and MP4, MOV, WebM or AVI videos, up to 50MB each, at most 10 per call; uses the account's storage.
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": {
"files": "<files>"
},
"name": "import_chat_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | The images or videos the user attached to their message. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| failed | Yes |